function FormHooks::__construct

Same name in this branch
  1. main core/themes/admin/src/Hook/FormHooks.php \Drupal\admin\Hook\FormHooks::__construct()
Same name and namespace in other branches
  1. 11.x core/themes/admin/src/Hook/FormHooks.php \Drupal\admin\Hook\FormHooks::__construct()
  2. 11.x core/themes/default_admin/src/Hook/FormHooks.php \Drupal\default_admin\Hook\FormHooks::__construct()

Constructs the form related hooks.

File

core/themes/default_admin/src/Hook/FormHooks.php, line 35

Class

FormHooks
Provides form related hook implementations.

Namespace

Drupal\default_admin\Hook

Code

public function __construct(protected RouteMatchInterface $routeMatch, protected AccountInterface $currentUser) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.