public function LanguageSelectionPageConditionIgnoreNeutral::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/ LanguageSelectionPageConditionIgnoreNeutral.php, line 102
Class
- LanguageSelectionPageConditionIgnoreNeutral
- Class for the Ignore Language Neutral plugin.
Namespace
Drupal\language_selection_page\Plugin\LanguageSelectionPageConditionCode
public function validateConfigurationForm(array &$form, FormStateInterface $form_state) {
parent::validateConfigurationForm($form, $form_state);
$form_state
->set($this
->getPluginId(), (bool) $form_state
->get($this
->getPluginId()));
}