You are here

public function LanguageCookieConditionBlacklistedPaths::postConfigSave in Language Cookie 8

Post config save method.

Method that gets triggered when the configuration of the form has been saved.

Parameters

\Drupal\Core\Config\Config $config: The config object.

array $form: The form array.

\Drupal\Core\Form\FormStateInterface $form_state: The FormState object.

Overrides LanguageCookieConditionBase::postConfigSave

File

src/Plugin/LanguageCookieCondition/LanguageCookieConditionBlacklistedPaths.php, line 151

Class

LanguageCookieConditionBlacklistedPaths
Class for the Blacklisted paths condition plugin.

Namespace

Drupal\language_cookie\Plugin\LanguageCookieCondition

Code

public function postConfigSave(Config $config, array &$form, FormStateInterface $form_state) {
  parent::postConfigSave($config, $form, $form_state);
  $config
    ->set('blacklisted_paths', $form_state
    ->getValue('blacklisted_paths'));
}