function ImageStyleAddForm::submitForm
Same name in other branches
- 8.9.x core/modules/image/src/Form/ImageStyleAddForm.php \Drupal\image\Form\ImageStyleAddForm::submitForm()
- 10 core/modules/image/src/Form/ImageStyleAddForm.php \Drupal\image\Form\ImageStyleAddForm::submitForm()
- 11.x core/modules/image/src/Form/ImageStyleAddForm.php \Drupal\image\Form\ImageStyleAddForm::submitForm()
Overrides EntityForm::submitForm
File
-
core/
modules/ image/ src/ Form/ ImageStyleAddForm.php, line 17
Class
- ImageStyleAddForm
- Controller for image style addition forms.
Namespace
Drupal\image\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this->messenger()
->addStatus($this->t('Style %name was created.', [
'%name' => $this->entity
->label(),
]));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.