You are here

public function BackgroundImageFormTrait::setFormState in Background Image 2.0.x

Same name and namespace in other branches
  1. 8 src/BackgroundImageFormTrait.php \Drupal\background_image\BackgroundImageFormTrait::setFormState()
  2. 2.x src/BackgroundImageFormTrait.php \Drupal\background_image\BackgroundImageFormTrait::setFormState()

Sets the current FormState object.

Parameters

\Drupal\Core\Form\FormStateInterface $form_state: The current form state.

Return value

self

1 call to BackgroundImageFormTrait::setFormState()
BackgroundImageForm::setFormState in src/Form/BackgroundImageForm.php
Sets the current FormState object.

File

src/BackgroundImageFormTrait.php, line 615

Class

BackgroundImageFormTrait
Trait BackgroundImageFormTrait.

Namespace

Drupal\background_image

Code

public function setFormState(FormStateInterface $form_state) {
  $this->formState = $form_state;
  $this->values = $form_state
    ->getValues();
  return $this
    ->setSubformState();
}