You are here

public static function BackgroundImageForm::staticValidate in Background Image 8

Same name and namespace in other branches
  1. 2.x src/Form/BackgroundImageForm.php \Drupal\background_image\Form\BackgroundImageForm::staticValidate()
  2. 2.0.x src/Form/BackgroundImageForm.php \Drupal\background_image\Form\BackgroundImageForm::staticValidate()

Static validation handler.

Note: this is just a stub so it can retrieve the existing instantiated class and pass the responsibility along to it.

Parameters

array $form: The complete form render array.

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

File

src/Form/BackgroundImageForm.php, line 774

Class

BackgroundImageForm

Namespace

Drupal\background_image\Form

Code

public static function staticValidate(array &$form, FormStateInterface $form_state) {
  self::initSubform($form, $form_state)
    ->validate();
}