You are here

public function SubFormState::disableCache in Authorization 8

Prevents the form from being cached.

Return value

$this

Overrides FormStateInterface::disableCache

File

src/Form/SubFormState.php, line 492

Class

SubFormState
Represents the form state of a sub-form.

Namespace

Drupal\authorization\Form

Code

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