W3cubDocs

/Drupal 8

public function EntityAccessControlHandler::resetCache

public EntityAccessControlHandler::resetCache()

Clears all cached access checks.

Overrides EntityAccessControlHandlerInterface::resetCache

File

core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php, line 209

Class

EntityAccessControlHandler
Defines a default implementation for entity access control handler.

Namespace

Drupal\Core\Entity

Code

public function resetCache() {
  $this->accessCache = array();
}

© 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!Entity!EntityAccessControlHandler.php/function/EntityAccessControlHandler::resetCache/8.1.x