protected function PaymentMethodConfigurationAccessControlHandler::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/ PaymentMethodConfiguration/ PaymentMethodConfigurationAccessControlHandler.php, line 72
Class
- PaymentMethodConfigurationAccessControlHandler
- Checks access for payment method configurations.
Namespace
Drupal\payment\Entity\PaymentMethodConfigurationCode
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
// cache.
}