function UserThemeHooks::elementInfoAlter

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

Implements hook_element_info_alter().

Attributes

#[Hook('element_info_alter')]

File

core/modules/user/src/Hook/UserThemeHooks.php, line 171

Class

UserThemeHooks
Hook implementations for user.

Namespace

Drupal\user\Hook

Code

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

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