function LanguageEditForm::actions

Same name in other branches
  1. 8.9.x core/modules/language/src/Form/LanguageEditForm.php \Drupal\language\Form\LanguageEditForm::actions()
  2. 10 core/modules/language/src/Form/LanguageEditForm.php \Drupal\language\Form\LanguageEditForm::actions()
  3. 11.x 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\Form

Code

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.