You are here

public static function BackgroundImageForm::staticSubmit in Background Image 8

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

Static submit 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 759

Class

BackgroundImageForm

Namespace

Drupal\background_image\Form

Code

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