You are here

public function TestInterpreter::submitConfigurationForm in Recurring Dates Field 8.2

Same name and namespace in other branches
  1. 3.x tests/modules/date_recur_interpreter_test/src/Plugin/DateRecurInterpreter/TestInterpreter.php \Drupal\date_recur_interpreter_test\Plugin\DateRecurInterpreter\TestInterpreter::submitConfigurationForm()
  2. 3.0.x tests/modules/date_recur_interpreter_test/src/Plugin/DateRecurInterpreter/TestInterpreter.php \Drupal\date_recur_interpreter_test\Plugin\DateRecurInterpreter\TestInterpreter::submitConfigurationForm()
  3. 3.1.x tests/modules/date_recur_interpreter_test/src/Plugin/DateRecurInterpreter/TestInterpreter.php \Drupal\date_recur_interpreter_test\Plugin\DateRecurInterpreter\TestInterpreter::submitConfigurationForm()

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

File

tests/modules/date_recur_interpreter_test/src/Plugin/DateRecurInterpreter/TestInterpreter.php, line 65

Class

TestInterpreter
Provides an interpreter for testing.

Namespace

Drupal\date_recur_interpreter_test\Plugin\DateRecurInterpreter

Code

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