You are here

private function MediaTypeManager::processMediaTypeExtensions in Media Bulk Upload 8

Process the extensions belonging to the media type.

Parameters

\Drupal\media\MediaTypeInterface $mediaType: Media Type.

Return value

$this Media Type Manager.

1 call to MediaTypeManager::processMediaTypeExtensions()
MediaTypeManager::groupMediaTypes in src/MediaTypeManager.php
Group media types by extension.

File

src/MediaTypeManager.php, line 84

Class

MediaTypeManager
Class MediaTypeManager

Namespace

Drupal\media_bulk_upload

Code

private function processMediaTypeExtensions(MediaTypeInterface $mediaType) {
  foreach ($this
    ->getMediaTypeExtensions($mediaType) as $extension) {
    $this->mediaTypeExtensions[$extension][$mediaType
      ->id()] = $mediaType;
  }
}