Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function submitForm(array &$form, FormStateInterface $form_state)
 {
     // Update image effect weights.
     if (!$form_state->isValueEmpty('effects')) {
         $this->updateEffectWeights($form_state->getValue('effects'));
     }
     parent::submitForm($form, $form_state);
 }
Beispiel #2
0
 /**
  * {@inheritdoc}
  */
 public function submitForm(array &$form, FormStateInterface $form_state)
 {
     parent::submitForm($form, $form_state);
     drupal_set_message($this->t('Style %name was created.', array('%name' => $this->entity->label())));
 }