Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function save(array $form, FormStateInterface $form_state)
 {
     parent::save($form, $form_state);
     drupal_set_message($this->t('Style %name was created.', array('%name' => $this->entity->label())));
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 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.'));
 }
Exemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 public function save(array $form, array &$form_state)
 {
     // Update image effect weights.
     if (!empty($form_state['values']['effects'])) {
         $this->updateEffectWeights($form_state['values']['effects']);
     }
     parent::save($form, $form_state);
     drupal_set_message($this->t('Changes to the style have been saved.'));
 }