function DateFormatAddForm::actions

Same name in other branches
  1. 8.9.x core/modules/system/src/Form/DateFormatAddForm.php \Drupal\system\Form\DateFormatAddForm::actions()
  2. 10 core/modules/system/src/Form/DateFormatAddForm.php \Drupal\system\Form\DateFormatAddForm::actions()
  3. 11.x core/modules/system/src/Form/DateFormatAddForm.php \Drupal\system\Form\DateFormatAddForm::actions()

Overrides EntityForm::actions

File

core/modules/system/src/Form/DateFormatAddForm.php, line 17

Class

DateFormatAddForm
Provides a form for adding a date format.

Namespace

Drupal\system\Form

Code

protected function actions(array $form, FormStateInterface $form_state) {
    $actions = parent::actions($form, $form_state);
    $actions['submit']['#value'] = $this->t('Add format');
    return $actions;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.