You are here

public function FormModeManagerLocalTasks::__construct in Form mode manager 8

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

Constructs a new Form Mode ManagerLocalTasks.

Parameters

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

File

src/Plugin/Derivative/FormModeManagerLocalTasks.php, line 50

Class

FormModeManagerLocalTasks
Defines dynamic 'Form Mode Manager' local tasks.

Namespace

Drupal\form_mode_manager\Plugin\Derivative

Code

public function __construct(FormModeManagerInterface $form_mode_manager) {
  $this->formModeManager = $form_mode_manager;
  $this->cacheTags = $form_mode_manager
    ->getListCacheTags();
  $this->formModesDefinitionsList = $form_mode_manager
    ->getAllFormModesDefinitions();
}