You are here

public function ApiProductEntityAccessCacheReset::clearApiProductCache in Apigee Edge 8

Clears API product entity access cache.

Parameters

\Symfony\Component\EventDispatcher\Event $event: Event that triggered this subscriber.

File

src/EventSubscriber/ApiProductEntityAccessCacheReset.php, line 77

Class

ApiProductEntityAccessCacheReset
Ensures that entity access cache gets cleared on API product entities.

Namespace

Drupal\apigee_edge\EventSubscriber

Code

public function clearApiProductCache(Event $event) : void {
  $this->entityTypeManager
    ->getAccessControlHandler('api_product')
    ->resetCache();
}