function ResponseStatus::submitConfigurationForm

Same name in other branches
  1. 10 core/modules/system/src/Plugin/Condition/ResponseStatus.php \Drupal\system\Plugin\Condition\ResponseStatus::submitConfigurationForm()

Overrides ConditionPluginBase::submitConfigurationForm

File

core/modules/system/src/Plugin/Condition/ResponseStatus.php, line 81

Class

ResponseStatus
Provides a 'Response status' condition.

Namespace

Drupal\system\Plugin\Condition

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.