public function MediaLibraryEditorOpener::__construct in Drupal 10
Same name and namespace in other branches
- 8 core/modules/media_library/src/MediaLibraryEditorOpener.php \Drupal\media_library\MediaLibraryEditorOpener::__construct()
- 9 core/modules/media_library/src/MediaLibraryEditorOpener.php \Drupal\media_library\MediaLibraryEditorOpener::__construct()
The MediaLibraryEditorOpener constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
File
- core/
modules/ media_library/ src/ MediaLibraryEditorOpener.php, line 39
Class
- MediaLibraryEditorOpener
- The media library opener for text editors.
Namespace
Drupal\media_libraryCode
public function __construct(EntityTypeManagerInterface $entity_type_manager) {
$this->filterStorage = $entity_type_manager
->getStorage('filter_format');
$this->mediaStorage = $entity_type_manager
->getStorage('media');
}