You are here

public function ImageFieldBuilder::submitConfigurationForm in Diff 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 FieldDiffBuilderBase::submitConfigurationForm

File

src/Plugin/diff/Field/ImageFieldBuilder.php, line 141

Class

ImageFieldBuilder
Plugin to diff image fields.

Namespace

Drupal\diff\Plugin\diff\Field

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  $this->configuration['show_id'] = $form_state
    ->getValue('show_id');
  $this->configuration['compare_alt_field'] = $form_state
    ->getValue('compare_alt_field');
  $this->configuration['compare_title_field'] = $form_state
    ->getValue('compare_title_field');
  $this->configuration['property_separator'] = $form_state
    ->getValue('property_separator');
  $this->configuration['show_thumbnail'] = $form_state
    ->getValue('show_thumbnail');
  parent::submitConfigurationForm($form, $form_state);
}