public function LanguageSelectionPageConditionBlacklistedPaths::validateConfigurationForm in Language Selection Page 8.2
Form validation 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::validateConfigurationForm
File
- src/
Plugin/ LanguageSelectionPageCondition/ LanguageSelectionPageConditionBlacklistedPaths.php, line 147
Class
- LanguageSelectionPageConditionBlacklistedPaths
- Class for the Blacklisted paths condition plugin.
Namespace
Drupal\language_selection_page\Plugin\LanguageSelectionPageConditionCode
public function validateConfigurationForm(array &$form, FormStateInterface $form_state) {
parent::validateConfigurationForm($form, $form_state);
$form_state
->setValue($this
->getPluginId(), array_filter(array_map('trim', explode(\PHP_EOL, $form_state
->getValue($this
->getPluginId())))));
}