コード例 #1
0
ファイル: ImageStyleEditForm.php プロジェクト: ddrozdik/dmaps
 /**
  * {@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);
 }
コード例 #2
0
ファイル: ImageStyleAddForm.php プロジェクト: aWEBoLabs/taxi
 /**
  * {@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())));
 }