You are here

public function PdfEngineBase::submitConfigurationForm in Entity Print 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 PdfEngineBase::submitConfigurationForm()
TestPdfEngine::submitConfigurationForm in tests/modules/entity_print_test/src/Plugin/EntityPrint/PdfEngine/TestPdfEngine.php
Form submission handler.

File

src/Plugin/PdfEngineBase.php, line 53

Class

PdfEngineBase
The PdfEngineBase class.

Namespace

Drupal\entity_print\Plugin

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  foreach ($this
    ->defaultConfiguration() as $key => $value) {
    $this->configuration[$key] = $form_state
      ->getValue($key);
  }
}