public LanguageEditForm::actions(array $form, FormStateInterface $form_state)
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/language/src/Form/LanguageEditForm.php, line 31
Class
- LanguageEditForm
- Controller for language edit forms.
Namespace
Drupal\language\Form
Code
public function actions(array $form, FormStateInterface $form_state) { $actions['submit'] = array( '#type' => 'submit', '#value' => $this->t('Save language'), '#validate' => array('::validateCommon'), '#submit' => array('::submitForm', '::save'), ); return $actions; }
Please login to continue.