class FormCache

Encapsulates the caching of a form and its form state.

Hierarchy

Related topics

Form generation
Describes how to generate and manipulate forms and process form submissions.

File

core/lib/Drupal/Core/Form/FormCache.php, line 19

Namespace

Drupal\Core\Form

Members

Name Modifiers Type Description
FormCache::$configFactory protected property The config factory.
FormCache::$csrfToken protected property The CSRF token generator to validate the form token.
FormCache::$currentUser protected property The current user.
FormCache::$keyValueExpirableFactory protected property The factory for expirable key value stores used by form cache.
FormCache::$logger protected property Logger channel.
FormCache::$moduleHandler protected property The module handler.
FormCache::$requestPolicy protected property A policy rule determining the cacheability of a request.
FormCache::$requestStack protected property The request stack.
FormCache::$root protected property The app root.
FormCache::deleteCache public function Deletes a form in the cache. Overrides FormCacheInterface::deleteCache
FormCache::getCache public function Fetches a form from the cache. Overrides FormCacheInterface::getCache
FormCache::loadCachedFormState protected function Loads the cached form state.
FormCache::setCache public function Stores a form in the cache. Overrides FormCacheInterface::setCache
FormCache::__construct public function Constructs a new FormCache.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Form!FormCache.php/class/FormCache/8.1.x