You are here

public function MediaLibraryFormElementOpener::__construct in Media Library Form API Element 2.x

Same name and namespace in other branches
  1. 8 src/MediaLibraryFormElementOpener.php \Drupal\media_library_form_element\MediaLibraryFormElementOpener::__construct()

MediaLibraryFormElementOpener constructor.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

File

src/MediaLibraryFormElementOpener.php, line 33

Class

MediaLibraryFormElementOpener
The media library opener for form elements.

Namespace

Drupal\media_library_form_element

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->entityTypeManager = $entity_type_manager;
}