You are here

public function FormModeManagerLocalAction::__construct in Form mode manager 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/Derivative/FormModeManagerLocalAction.php \Drupal\form_mode_manager\Plugin\Derivative\FormModeManagerLocalAction::__construct()

Constructs a FormModeManagerLocalAction object.

Parameters

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

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

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

File

src/Plugin/Derivative/FormModeManagerLocalAction.php, line 51

Class

FormModeManagerLocalAction
Provides local action definitions for all entity bundles.

Namespace

Drupal\form_mode_manager\Plugin\Derivative

Code

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