Mercurial > hg > isophonics-drupal-site
view core/modules/image/src/Form/ImageStyleAddForm.php @ 9:1fc0ff908d1f
Add another data file
author | Chris Cannam |
---|---|
date | Mon, 05 Feb 2018 12:34:32 +0000 |
parents | 4c8ae668cc8c |
children | 1fec387a4317 |
line wrap: on
line source
<?php namespace Drupal\image\Form; use Drupal\Core\Form\FormStateInterface; /** * Controller for image style addition forms. */ class ImageStyleAddForm extends ImageStyleFormBase { /** * {@inheritdoc} */ public function submitForm(array &$form, FormStateInterface $form_state) { parent::submitForm($form, $form_state); drupal_set_message($this->t('Style %name was created.', ['%name' => $this->entity->label()])); } /** * {@inheritdoc} */ public function actions(array $form, FormStateInterface $form_state) { $actions = parent::actions($form, $form_state); $actions['submit']['#value'] = $this->t('Create new style'); return $actions; } }