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);
}
doc_Drupal
2016-10-29 09:15:32
Comments
Leave a Comment

Please login to continue.