You are here

public function EntityAccessControlHandler::resetCache in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php \Drupal\Core\Entity\EntityAccessControlHandler::resetCache()
  2. 10 core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php \Drupal\Core\Entity\EntityAccessControlHandler::resetCache()

Clears all cached access checks.

Overrides EntityAccessControlHandlerInterface::resetCache

File

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

Class

EntityAccessControlHandler
Defines a default implementation for entity access control handler.

Namespace

Drupal\Core\Entity

Code

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