You are here

public function MediaLibraryEditorOpener::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/media_library/src/MediaLibraryEditorOpener.php \Drupal\media_library\MediaLibraryEditorOpener::__construct()
  2. 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_library

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->filterStorage = $entity_type_manager
    ->getStorage('filter_format');
  $this->mediaStorage = $entity_type_manager
    ->getStorage('media');
}