You are here

public function EntityQueueForm::submitForm in Entityqueue 8

Overrides \Drupal\field_ui\Form\EntityDisplayFormBase::submitForm().

Overrides EntityForm::submitForm

File

src/Form/EntityQueueForm.php, line 388

Class

EntityQueueForm
Base form for entity queue edit forms.

Namespace

Drupal\entityqueue\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  parent::submitForm($form, $form_state);

  /** @var \Drupal\entityqueue\EntityQueueInterface $queue */
  $queue = $this
    ->getEntity();
  $handler_plugin = $this
    ->getHandlerPlugin($queue, $form_state);
  $subform_state = SubformState::createForSubform($form['handler_settings_wrapper']['handler_settings'], $form, $form_state);
  $handler_plugin
    ->submitConfigurationForm($form['handler_settings_wrapper']['handler_settings'], $subform_state);
  $queue
    ->setHandlerPlugin($handler_plugin);
}