You are here

public function FieldDiffBuilderBase::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 PluginFormInterface::submitConfigurationForm

8 calls to FieldDiffBuilderBase::submitConfigurationForm()
CommentFieldBuilder::submitConfigurationForm in src/Plugin/diff/Field/CommentFieldBuilder.php
Form submission handler.
EntityReferenceFieldBuilder::submitConfigurationForm in src/Plugin/diff/Field/EntityReferenceFieldBuilder.php
Form submission handler.
FileFieldBuilder::submitConfigurationForm in src/Plugin/diff/Field/FileFieldBuilder.php
Form submission handler.
ImageFieldBuilder::submitConfigurationForm in src/Plugin/diff/Field/ImageFieldBuilder.php
Form submission handler.
LinkFieldBuilder::submitConfigurationForm in src/Plugin/diff/Field/LinkFieldBuilder.php
Form submission handler.

... See full list

8 methods override FieldDiffBuilderBase::submitConfigurationForm()
CommentFieldBuilder::submitConfigurationForm in src/Plugin/diff/Field/CommentFieldBuilder.php
Form submission handler.
EntityReferenceFieldBuilder::submitConfigurationForm in src/Plugin/diff/Field/EntityReferenceFieldBuilder.php
Form submission handler.
FileFieldBuilder::submitConfigurationForm in src/Plugin/diff/Field/FileFieldBuilder.php
Form submission handler.
ImageFieldBuilder::submitConfigurationForm in src/Plugin/diff/Field/ImageFieldBuilder.php
Form submission handler.
LinkFieldBuilder::submitConfigurationForm in src/Plugin/diff/Field/LinkFieldBuilder.php
Form submission handler.

... See full list

File

src/FieldDiffBuilderBase.php, line 108

Class

FieldDiffBuilderBase
Base class for field diff builder plugins.

Namespace

Drupal\diff

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  $this->configuration['show_header'] = $form_state
    ->getValue('show_header');
  $this->configuration['markdown'] = $form_state
    ->getValue('markdown');
}