function LanguageEditForm::actions
Same name in other branches
- 9 core/modules/language/src/Form/LanguageEditForm.php \Drupal\language\Form\LanguageEditForm::actions()
- 8.9.x core/modules/language/src/Form/LanguageEditForm.php \Drupal\language\Form\LanguageEditForm::actions()
- 10 core/modules/language/src/Form/LanguageEditForm.php \Drupal\language\Form\LanguageEditForm::actions()
Overrides EntityForm::actions
File
-
core/
modules/ language/ src/ Form/ LanguageEditForm.php, line 33
Class
- LanguageEditForm
- Controller for language edit forms.
Namespace
Drupal\language\FormCode
public function actions(array $form, FormStateInterface $form_state) {
$actions['submit'] = [
'#type' => 'submit',
'#value' => $this->t('Save language'),
'#validate' => [
'::validateCommon',
],
'#submit' => [
'::submitForm',
'::save',
],
];
return $actions;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.