public function NegotiationLanguageSelectionPageForm::validateForm in Language Selection Page 8.2
Form validation handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides FormBase::validateForm
File
- src/
Form/ NegotiationLanguageSelectionPageForm.php, line 124
Class
- NegotiationLanguageSelectionPageForm
- Configure the Language Selection Page language negotiation method.
Namespace
Drupal\language_selection_page\FormCode
public function validateForm(array &$form, FormStateInterface $form_state) {
parent::validateForm($form, $form_state);
/** @var \Drupal\language_selection_page\LanguageSelectionPageConditionInterface $condition */
foreach ($form_state
->get([
'conditions',
]) as $condition) {
$condition
->validateConfigurationForm($form, $form_state);
}
}