You are here

public function EntityEmbedDisplayBase::submitConfigurationForm in Entity Embed 8

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

1 method overrides EntityEmbedDisplayBase::submitConfigurationForm()
ImageFieldFormatter::submitConfigurationForm in src/Plugin/entity_embed/EntityEmbedDisplay/ImageFieldFormatter.php
Form submission handler.

File

src/EntityEmbedDisplay/EntityEmbedDisplayBase.php, line 184

Class

EntityEmbedDisplayBase
Defines a base Entity Embed Display implementation.

Namespace

Drupal\entity_embed\EntityEmbedDisplay

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  if (!$form_state
    ->getErrors()) {
    $this->configuration = array_intersect_key($form_state
      ->getValues(), $this
      ->defaultConfiguration());
  }
}