SystemMenuOffCanvasForm::submitConfigurationForm

public SystemMenuOffCanvasForm::submitConfigurationForm(array &$form, FormStateInterface $form_state)

Form submission handler.

Parameters

array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm().

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform().

Overrides PluginFormInterface::submitConfigurationForm

File

core/modules/outside_in/src/Form/SystemMenuOffCanvasForm.php, line 120

Class

SystemMenuOffCanvasForm
The off-canvas form handler for the SystemMenuBlock.

Namespace

Drupal\outside_in\Form

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  $this->plugin->submitConfigurationForm($form, $form_state);
  $this->getEntityForm($this->entity)->submitForm($form, $form_state);
  $this->entity->save();
}
doc_Drupal
2016-10-29 09:45:51
Comments
Leave a Comment

Please login to continue.