You are here

public function FormModesSubscriber::__construct in Form mode manager 8

Same name and namespace in other branches
  1. 8.2 src/Routing/EventSubscriber/FormModesSubscriber.php \Drupal\form_mode_manager\Routing\EventSubscriber\FormModesSubscriber::__construct()

Constructs a new RouteSubscriber object.

Parameters

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

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

\Drupal\form_mode_manager\FormModeManagerInterface $form_mode_manager: The form mode manager.

\Drupal\form_mode_manager\EntityRoutingMapManager $plugin_routes_manager: Plugin EntityRoutingMap to retrieve entity form operation routes.

File

src/Routing/EventSubscriber/FormModesSubscriber.php, line 77

Class

FormModesSubscriber
Subscriber for form_mode_manager routes.

Namespace

Drupal\form_mode_manager\Routing\EventSubscriber

Code

public function __construct(EntityTypeManagerInterface $entity_manager, EntityDisplayRepositoryInterface $entity_display_repository, FormModeManagerInterface $form_mode_manager, EntityRoutingMapManager $plugin_routes_manager) {
  $this->entityTypeManager = $entity_manager;
  $this->entityDisplayRepository = $entity_display_repository;
  $this->formModeManager = $form_mode_manager;
  $this->entityRoutingMap = $plugin_routes_manager;
}