function UserHooks::elementInfoAlter

Same name and namespace in other branches
  1. 11.x core/modules/user/src/Hook/UserHooks.php \Drupal\user\Hook\UserHooks::elementInfoAlter()

Implements hook_element_info_alter().

Attributes

#[Hook('element_info_alter')]

File

core/modules/user/src/Hook/UserHooks.php, line 310

Class

UserHooks
Hook implementations for user.

Namespace

Drupal\user\Hook

Code

public function elementInfoAlter(array &$types) : void {
  if (isset($types['password_confirm'])) {
    $types['password_confirm']['#process'][] = 'user_form_process_password_confirm';
  }
}

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