$effect_id = $this->entity->addImageEffect($effect);
$this->entity->save();
if (!empty($effect_id)) {
- drupal_set_message($this->t('The image effect was successfully applied.'));
+ $this->messenger()->addStatus($this->t('The image effect was successfully applied.'));
}
}
}
*/
public function save(array $form, FormStateInterface $form_state) {
parent::save($form, $form_state);
- drupal_set_message($this->t('Changes to the style have been saved.'));
- }
-
- /**
- * {@inheritdoc}
- */
- public function actions(array $form, FormStateInterface $form_state) {
- $actions = parent::actions($form, $form_state);
- $actions['submit']['#value'] = $this->t('Update style');
-
- return $actions;
+ $this->messenger()->addStatus($this->t('Changes to the style have been saved.'));
}
/**