You are here

public function SubFormState::setInvalidToken in Authorization 8

Flags the form state as having or not an invalid token.

Parameters

bool $invalid_token: Whether the form has an invalid token.

Return value

$this

Overrides FormStateInterface::setInvalidToken

File

src/Form/SubFormState.php, line 410

Class

SubFormState
Represents the form state of a sub-form.

Namespace

Drupal\authorization\Form

Code

public function setInvalidToken($invalid_token) {
  $this->mainFormState
    ->setInvalidToken($invalid_token);
  return $this;
}