private function MediaTypeManager::groupMediaTypes in Media Bulk Upload 8
Group media types by extension.
Parameters
\Drupal\media\MediaTypeInterface[] $mediaTypes: Media Types.
Return value
$this Media Type Manager.
1 call to MediaTypeManager::groupMediaTypes()
- MediaTypeManager::__construct in src/
MediaTypeManager.php - MediaTypeMatcher constructor.
File
- src/
MediaTypeManager.php, line 67
Class
- MediaTypeManager
- Class MediaTypeManager
Namespace
Drupal\media_bulk_uploadCode
private function groupMediaTypes($mediaTypes) {
foreach ($mediaTypes as $mediaType) {
$this
->processMediaTypeExtensions($mediaType);
}
return $this;
}