You are here

protected function PaymentAccessControlHandler::getCache in Payment 8.2

Tries to retrieve a previously cached access value from the static cache.

Parameters

string $cid: Unique string identifier for the entity/operation, for example the entity UUID or a custom string.

string $operation: The entity operation. Usually one of 'view', 'update', 'create' or 'delete'.

string $langcode: The language code for which to check access.

\Drupal\Core\Session\AccountInterface $account: The user for which to check access.

Return value

\Drupal\Core\Access\AccessResultInterface|null The cached AccessResult, or NULL if there is no record for the given user, operation, langcode and entity in the cache.

Overrides EntityAccessControlHandler::getCache

File

src/Entity/Payment/PaymentAccessControlHandler.php, line 90

Class

PaymentAccessControlHandler
Provides an access control handler for payment entities.

Namespace

Drupal\payment\Entity\Payment

Code

protected function getCache($cid, $operation, $langcode, AccountInterface $account) {

  // Disable the cache, because the intensive operations are cached elsewhere
  // already and the results of all other operations are too volatile to be
  // cached.
}