You are here

public function FormState::disableCache in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::disableCache()

Prevents the form from being cached.

Return value

$this

Overrides FormStateInterface::disableCache

File

core/lib/Drupal/Core/Form/FormState.php, line 521

Class

FormState
Stores information about the state of a form.

Namespace

Drupal\Core\Form

Code

public function disableCache() {
  $this->no_cache = TRUE;
  return $this;
}