3 namespace Drupal\image\Form;
5 use Drupal\Core\Form\FormStateInterface;
8 * Controller for image style addition forms.
12 class ImageStyleAddForm extends ImageStyleFormBase {
17 public function submitForm(array &$form, FormStateInterface $form_state) {
18 parent::submitForm($form, $form_state);
19 $this->messenger()->addStatus($this->t('Style %name was created.', ['%name' => $this->entity->label()]));
25 public function actions(array $form, FormStateInterface $form_state) {
26 $actions = parent::actions($form, $form_state);
27 $actions['submit']['#value'] = $this->t('Create new style');