FormState::disableCache

public 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;
}
doc_Drupal
2016-10-29 09:15:54
Comments
Leave a Comment

Please login to continue.