You are here

public function EntityEmbedDialog::__construct in Entity Embed 8

Constructs a EntityEmbedDialog object.

Parameters

\Drupal\entity_embed\EntityEmbedDisplay\EntityEmbedDisplayManager $entity_embed_display_manager: The Module Handler.

\Drupal\Core\Form\FormBuilderInterface $form_builder: The Form Builder.

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

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: Event dispatcher service.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

File

src/Form/EntityEmbedDialog.php, line 106

Class

EntityEmbedDialog
Provides a form to embed entities by specifying data attributes.

Namespace

Drupal\entity_embed\Form

Code

public function __construct(EntityEmbedDisplayManager $entity_embed_display_manager, FormBuilderInterface $form_builder, EntityTypeManagerInterface $entity_type_manager, EventDispatcherInterface $event_dispatcher, EntityFieldManagerInterface $entity_field_manager, ModuleHandlerInterface $module_handler) {
  $this->entityEmbedDisplayManager = $entity_embed_display_manager;
  $this->formBuilder = $form_builder;
  $this->entityTypeManager = $entity_type_manager;
  $this->eventDispatcher = $event_dispatcher;
  $this->entityFieldManager = $entity_field_manager;
  $this->moduleHandler = $module_handler;
}