public function LinkitMediaLibraryEditorOpener::__construct in Linkit Media Library 1.0.x
The MediaLibraryEditorOpener constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
File
- src/
LinkitMediaLibraryEditorOpener.php, line 40
Class
- LinkitMediaLibraryEditorOpener
- The media library opener for text editors.
Namespace
Drupal\linkit_media_libraryCode
public function __construct(EntityTypeManagerInterface $entity_type_manager) {
$this->filterStorage = $entity_type_manager
->getStorage('filter_format');
$this->mediaStorage = $entity_type_manager
->getStorage('media');
}