You are here

public function NegotiationLanguageAdministrationLanguageNegotiationForm::validateForm in Administration Language Negotiation 8

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/NegotiationLanguageAdministrationLanguageNegotiationForm.php, line 118

Class

NegotiationLanguageAdministrationLanguageNegotiationForm
Class NegotiationLanguageAdministrationLanguageNegotiationForm.

Namespace

Drupal\administration_language_negotiation\Form

Code

public function validateForm(array &$form, FormStateInterface $form_state) {
  parent::validateForm($form, $form_state);
  foreach ($form_state
    ->get([
    'conditions',
  ]) as $condition) {
    $condition
      ->validateConfigurationForm($form, $form_state);
  }
}