function claro_preprocess_form_element__password_confirm

Same name and namespace in other branches
  1. 9 core/themes/claro/claro.theme \claro_preprocess_form_element__password_confirm()
  2. 8.9.x core/themes/claro/claro.theme \claro_preprocess_form_element__password_confirm()
  3. 10 core/themes/claro/claro.theme \claro_preprocess_form_element__password_confirm()

Implements hook_preprocess_HOOK() for form_element__password_confirm.

File

core/themes/claro/claro.theme, line 1122

Code

function claro_preprocess_form_element__password_confirm(&$variables) : void {
  // Add CSS classes needed for theming the password confirm widget.
  $variables['attributes']['class'][] = 'password-confirm';
  $variables['attributes']['class'][] = 'is-initial';
  $variables['attributes']['class'][] = 'is-password-empty';
  $variables['attributes']['class'][] = 'is-confirm-empty';
}

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