public function SubFormState::setCached in Authorization 8
Sets this form to be cached.
Parameters
bool $cache: TRUE if the form should be cached, FALSE otherwise.
Return value
$this
Throws
\LogicException If the current request is using an HTTP method that must not change state (e.g., GET).
Overrides FormStateInterface::setCached
File
- src/
Form/ SubFormState.php, line 477
Class
- SubFormState
- Represents the form state of a sub-form.
Namespace
Drupal\authorization\FormCode
public function setCached($cache = TRUE) {
$this->mainFormState
->setCached($cache);
return $this;
}