3 namespace Drupal\image\Form;
5 use Drupal\Core\Form\FormStateInterface;
8 * Controller for image style addition forms.
10 class ImageStyleAddForm extends ImageStyleFormBase {
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()]));
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');