protected function RegisterForm::actions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/user/src/RegisterForm.php \Drupal\user\RegisterForm::actions()
Returns an array of supported actions for the current entity form.
@todo Consider introducing a 'preview' action here, since it is used by many entity types.
Overrides EntityForm::actions
File
- core/
modules/ user/ src/ RegisterForm.php, line 68 - Contains \Drupal\user\RegisterForm.
Class
- RegisterForm
- Form controller for the user register forms.
Namespace
Drupal\userCode
protected function actions(array $form, FormStateInterface $form_state) {
$element = parent::actions($form, $form_state);
$element['submit']['#value'] = $this
->t('Create new account');
return $element;
}