You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Context condition that detects a file's Mime type would be useful, for example, to create a Context that displayed a file of a specific Mime type using a specific view mode.
The text was updated successfully, but these errors were encountered:
@kayakr thanks for the pointer. Turns out I don't need to detect the MimeType, I can get it using the $file->getMimeType() method from Drupal\islandora\MediaSource\MediaSourceService. I'll be issuing a PR as soon as I can get past #1179 so feel free to comment on my implementation there if you want.
A Context condition that detects a file's Mime type would be useful, for example, to create a Context that displayed a file of a specific Mime type using a specific view mode.
The text was updated successfully, but these errors were encountered: