public function FormCache::deleteCache in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Form/FormCache.php \Drupal\Core\Form\FormCache::deleteCache()
Deletes a form in the cache.
Parameters
string $form_build_id: The unique form build ID.
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);
}