You are here

public function ConditionPluginBase::submitConfigurationForm in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Condition/ConditionPluginBase.php \Drupal\Core\Condition\ConditionPluginBase::submitConfigurationForm()
  2. 9 core/lib/Drupal/Core/Condition/ConditionPluginBase.php \Drupal\Core\Condition\ConditionPluginBase::submitConfigurationForm()

File

core/lib/Drupal/Core/Condition/ConditionPluginBase.php, line 73

Class

ConditionPluginBase
Provides a basis for fulfilling contexts for condition plugins.

Namespace

Drupal\Core\Condition

Code

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