public function MediaTypeManagerInterface::getMediaTypeIdsByFileExtension in Media Bulk Upload 8
Get the media types for a specific file extension.
Parameters
string $extension: File extension.
Return value
\Drupal\media\MediaTypeInterface[] Media Types
Throws
\Exception
1 method overrides MediaTypeManagerInterface::getMediaTypeIdsByFileExtension()
File
- src/
MediaTypeManagerInterface.php, line 71
Class
- MediaTypeManagerInterface
- Interface MediaTypeManagerInterface
Namespace
Drupal\media_bulk_uploadCode
public function getMediaTypeIdsByFileExtension($extension);