Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / image / src / Form / ImageStyleAddForm.php
1 <?php
2
3 namespace Drupal\image\Form;
4
5 use Drupal\Core\Form\FormStateInterface;
6
7 /**
8  * Controller for image style addition forms.
9  */
10 class ImageStyleAddForm extends ImageStyleFormBase {
11
12   /**
13    * {@inheritdoc}
14    */
15   public function submitForm(array &$form, FormStateInterface $form_state) {
16     parent::submitForm($form, $form_state);
17     drupal_set_message($this->t('Style %name was created.', ['%name' => $this->entity->label()]));
18   }
19
20   /**
21    * {@inheritdoc}
22    */
23   public function actions(array $form, FormStateInterface $form_state) {
24     $actions = parent::actions($form, $form_state);
25     $actions['submit']['#value'] = $this->t('Create new style');
26
27     return $actions;
28   }
29
30 }