public function FormCache::deleteCache

public FormCache::deleteCache($form_build_id)

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 203

Class

FormCache
Encapsulates the caching of a form and its form state.

Namespace

Drupal\Core\Form

Code

public function deleteCache($form_build_id) {
  $this->keyValueExpirableFactory->get('form')->delete($form_build_id);
  $this->keyValueExpirableFactory->get('form_state')->delete($form_build_id);
}

© 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/function/FormCache::deleteCache/8.1.x