You are here

public function FormAlter::__construct in Form mode manager 8.2

Same name in this branch
  1. 8.2 src/FormAlter.php \Drupal\form_mode_manager\FormAlter::__construct()
  2. 8.2 modules/form_mode_user_roles_assign/src/FormAlter.php \Drupal\form_mode_user_roles_assign\FormAlter::__construct()

FormAlter constructor.

Parameters

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

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.

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

File

src/FormAlter.php, line 50

Class

FormAlter
Manipulates Form Alter information.

Namespace

Drupal\form_mode_manager

Code

public function __construct(FormModeManagerInterface $form_mode_manager, RouteMatchInterface $route_match, ModuleHandlerInterface $module_handler) {
  $this->formModeManager = $form_mode_manager;
  $this->routeMatch = $route_match;
  $this->moduleHandler = $module_handler;
}