You are here

public static function BackgroundImageForm::staticValidate in Background Image 2.0.x

Same name and namespace in other branches
  1. 8 src/Form/BackgroundImageForm.php \Drupal\background_image\Form\BackgroundImageForm::staticValidate()
  2. 2.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 776

Class

BackgroundImageForm

Namespace

Drupal\background_image\Form

Code

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