function ImageStyleAddForm::actions

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

Overrides EntityForm::actions

File

core/modules/image/src/Form/ImageStyleAddForm.php, line 25

Class

ImageStyleAddForm
Controller for image style addition forms.

Namespace

Drupal\image\Form

Code

public function actions(array $form, FormStateInterface $form_state) {
    $actions = parent::actions($form, $form_state);
    $actions['submit']['#value'] = $this->t('Create new style');
    return $actions;
}

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