add_file_fallback_image — Add a fallback image for files of the given mime type or type family.¶
New in version 2.2.
- add_file_fallback_image($mimeType, $image)¶
Add a fallback image for files of the given mime type or type family.
The fallback is used when there are no generated derivative images and one is requested (for example, by a call to file_image()).
- $mimeType (string) – The mime type this fallback is for, or the mime “prefix” it is for (video, audio, etc.)
- $image (string) – The name of the image to use, as would be passed to img()