ImageAPIOptimizePipelineAddForm.php in Image Optimize (or ImageAPI Optimize) 8.2
File
src/Form/ImageAPIOptimizePipelineAddForm.php
View source
<?php
namespace Drupal\imageapi_optimize\Form;
use Drupal\Core\Form\FormStateInterface;
class ImageAPIOptimizePipelineAddForm extends ImageAPIOptimizePipelineFormBase {
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->messenger()
->addMessage($this
->t('Pipeline %name was created.', [
'%name' => $this->entity
->label(),
]));
}
public function actions(array $form, FormStateInterface $form_state) {
$actions = parent::actions($form, $form_state);
$actions['submit']['#value'] = $this
->t('Create new pipeline');
return $actions;
}
}