/**
  * Overrides Drupal\Core\Entity\EntityFormController::submit().
  */
 public function submit(array $form, array &$form_state)
 {
     $font = parent::submit($form, $form_state);
     // Save any form fields that don't map to entity fields here.
     /*
      // Prevent leading and trailing spaces in term names.
         $term->name = trim($term->name);
     
         // Convert text_format field into values expected by taxonomy_term_save().
         $description = $form_state['values']['description'];
         $term->description = $description['value'];
         $term->format = $description['format'];
     */
     return $font;
 }
 /**
  * Overrides Drupal\Core\Entity\EntityFormController::submit().
  */
 public function submit(array $form, array &$form_state)
 {
     $endpoint = parent::submit($form, $form_state);
     $form_state['redirect'] = array('admin/structure/services/endpoint/' . $endpoint->id());
     return $endpoint;
 }
Пример #3
0
 /**
  * {@inheritdoc}
  */
 public function submit(array $form, array &$form_state)
 {
     foreach ($this->getConfigurablePlugins() as $plugin) {
         $plugin->submitConfigurationForm($form, $form_state);
     }
     // Build the importer object from the submitted values.
     return parent::submit($form, $form_state);
 }