modules/acm/src/Element/AcmEmailUpdate.php
public static function processEmailUpdate(&$element, FormStateInterface $form_state, &$complete_form) {
    $element['email'] = [
      '#type' => 'email',
      '#title' => isset($element['#title']) ? $element['#title'] : '',
      '#value' => isset($element['#value']['email']) ? $element['#value']['email'] : NULL,
      '#required' => $element['#required'],
      '#error_no_message' => TRUE,
    ];
    $element['password'] = [
      '#type' => 'password',
      '#title' => t('Password'),
      '#value' => isset($element['#value']['password']) ? $element['#value']['password'] : NULL,
      '#required' => $element['#required'],
      '#error_no_message' => TRUE,
    ];
    $element['#element_validate'] = [[get_called_class(), 'validateEmailUpdate']];
    $element['#tree'] = TRUE;

    return $element;
  }
public static function processEmailUpdate(&$element, FormStateInterface $form_state, &$complete_form) {
    $element['email'] = [
      '#type' => 'email',
      '#title' => isset($element['#title']) ? $element['#title'] : '',
      '#value' => isset($element['#value']['email']) ? $element['#value']['email'] : NULL,
      '#required' => $element['#required'],
      '#error_no_message' => TRUE,
    ];
    $element['password'] = [
      '#type' => 'password',
      '#title' => t('Password'),
      '#value' => isset($element['#value']['password']) ? $element['#value']['password'] : NULL,
      '#required' => $element['#required'],
      '#error_no_message' => TRUE,
    ];
    $element['#element_validate'] = [[get_called_class(), 'validateEmailUpdate']];
    $element['#tree'] = TRUE;

    return $element;
  }
public static function processEmailUpdate ( & $ element , FormStateInterface $ form_state , & $ complete_form ) { $ element [ 'email' ] = [ '#type' => 'email' , '#title' => isset ( $ element [ '#title' ] ) ? $ element [ '#title' ] : '' , '#value' => isset ( $ element [ '#value' ] [ 'email' ] ) ? $ element [ '#value' ] [ 'email' ] : NULL , '#required' => $ element [ '#required' ] , '#error_no_message' => TRUE , ] ; $ element [ 'password' ] = [ '#type' => 'password' , '#title' => t ( 'Password' ) , '#value' => isset ( $ element [ '#value' ] [ 'password' ] ) ? $ element [ '#value' ] [ 'password' ] : NULL , '#required' => $ element [ '#required' ] , '#error_no_message' => TRUE , ] ; $ element [ '#element_validate' ] = [ [ get_called_class ( ) , 'validateEmailUpdate' ] ] ; $ element [ '#tree' ] = TRUE ; return $ element ; }
Expand an acm_email_update field into two text boxes.
Expand an acm_email_update field into two text boxes .