You are here

public function EntityAccessControlHandler::resetCache in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php \Drupal\Core\Entity\EntityAccessControlHandler::resetCache()
  2. 9 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 = [];
}