You are here

public function TestTextColorBehavior::submitConfigurationForm in Paragraphs 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 ParagraphsBehaviorBase::submitConfigurationForm

File

tests/modules/paragraphs_test/src/Plugin/paragraphs/Behavior/TestTextColorBehavior.php, line 49

Class

TestTextColorBehavior
Provides a test feature plugin.

Namespace

Drupal\paragraphs_test\Plugin\paragraphs\Behavior

Code

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