function FormCache::deleteCache
Same name in other branches
- 9 core/lib/Drupal/Core/Form/FormCache.php \Drupal\Core\Form\FormCache::deleteCache()
- 10 core/lib/Drupal/Core/Form/FormCache.php \Drupal\Core\Form\FormCache::deleteCache()
- 11.x core/lib/Drupal/Core/Form/FormCache.php \Drupal\Core\Form\FormCache::deleteCache()
Overrides FormCacheInterface::deleteCache
File
-
core/
lib/ Drupal/ Core/ Form/ FormCache.php, line 204
Class
- FormCache
- Encapsulates the caching of a form and its form state.
Namespace
Drupal\Core\FormCode
public function deleteCache($form_build_id) {
$this->keyValueExpirableFactory
->get('form')
->delete($form_build_id);
$this->keyValueExpirableFactory
->get('form_state')
->delete($form_build_id);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.