You are here

public function RequestParam::submitConfigurationForm in Condition Query 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 ConditionPluginBase::submitConfigurationForm

File

src/Plugin/Condition/RequestParam.php, line 82

Class

RequestParam
Provides a 'Request Param' condition.

Namespace

Drupal\condition_query\Plugin\Condition

Code

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