Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UserHooks.php

function UserHooks::elementInfoAlter

Implements hook_element_info_alter().

File

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

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';
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal