public function FormState::disableCache in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 524 - Contains \Drupal\Core\Form\FormState.
Class
- FormState
- Stores information about the state of a form.
Namespace
Drupal\Core\FormCode
public function disableCache() {
$this->no_cache = TRUE;
return $this;
}