You are here

public function EntityForm::submitConfigurationForm in Entity Browser 8

Same name and namespace in other branches
  1. 8.2 modules/entity_form/src/Plugin/EntityBrowser/Widget/EntityForm.php \Drupal\entity_browser_entity_form\Plugin\EntityBrowser\Widget\EntityForm::submitConfigurationForm()

Implements PluginFormInterface::submitConfigurationForm().

This is the default implementation for the most common cases where the form element names match keys in configuration array. Plugins can override this if they need more complex logic.

Overrides PluginConfigurationFormTrait::submitConfigurationForm

File

modules/entity_form/src/Plugin/EntityBrowser/Widget/EntityForm.php, line 236

Class

EntityForm
Provides entity form widget.

Namespace

Drupal\entity_browser_entity_form\Plugin\EntityBrowser\Widget

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  parent::submitConfigurationForm($form, $form_state);
  $this->configuration['bundle'] = $this->configuration['bundle']['select'];
  $this->configuration['form_mode'] = $this->configuration['form_mode']['form_select'];
}