You are here

public function EnhanceEntityRouteSubscriber::__construct in Form mode manager 8.2

Constructs a new RouteSubscriber object.

Parameters

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

\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/EnhanceEntityRouteSubscriber.php, line 73

Class

EnhanceEntityRouteSubscriber
Listens to the dynamic route event and enhance existing routes.

Namespace

Drupal\form_mode_manager\Routing\EventSubscriber

Code

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