You are here

public function EditorMediaDialog::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/media/src/Form/EditorMediaDialog.php \Drupal\media\Form\EditorMediaDialog::__construct()
  2. 9 core/modules/media/src/Form/EditorMediaDialog.php \Drupal\media\Form\EditorMediaDialog::__construct()

Constructs a EditorMediaDialog object.

Parameters

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.

\Drupal\Core\Entity\EntityDisplayRepositoryInterface $entity_display_repository: The entity display repository.

File

core/modules/media/src/Form/EditorMediaDialog.php, line 55

Class

EditorMediaDialog
Provides a media embed dialog for text editors.

Namespace

Drupal\media\Form

Code

public function __construct(EntityRepositoryInterface $entity_repository, EntityDisplayRepositoryInterface $entity_display_repository) {
  $this->entityRepository = $entity_repository;
  $this->entityDisplayRepository = $entity_display_repository;
}