You are here

protected function RegisterForm::actions in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/user/src/RegisterForm.php \Drupal\user\RegisterForm::actions()
  2. 9 core/modules/user/src/RegisterForm.php \Drupal\user\RegisterForm::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;
}