You are here

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()
MediaTypeManager::getMediaTypeIdsByFileExtension in src/MediaTypeManager.php

File

src/MediaTypeManagerInterface.php, line 71

Class

MediaTypeManagerInterface
Interface MediaTypeManagerInterface

Namespace

Drupal\media_bulk_upload

Code

public function getMediaTypeIdsByFileExtension($extension);