function RegisterForm::actions

Same name and namespace in other branches
  1. 9 core/modules/user/src/RegisterForm.php \Drupal\user\RegisterForm::actions()
  2. 8.9.x core/modules/user/src/RegisterForm.php \Drupal\user\RegisterForm::actions()
  3. 10 core/modules/user/src/RegisterForm.php \Drupal\user\RegisterForm::actions()

Overrides EntityForm::actions

File

core/modules/user/src/RegisterForm.php, line 61

Class

RegisterForm
Form handler for the user register forms.

Namespace

Drupal\user

Code

protected function actions(array $form, FormStateInterface $form_state) {
    $element = parent::actions($form, $form_state);
    $element['submit']['#value'] = $this->t('Create new account');
    return $element;
}

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