function media_test_embed_entity_access in Drupal 9
Implements hook_entity_access().
File
- core/
modules/ media/ tests/ modules/ media_test_embed/ media_test_embed.module, line 32 - Helper module for the Media Embed CKEditor plugin tests.
Code
function media_test_embed_entity_access(EntityInterface $entity, $operation, AccountInterface $account) {
return AccessResult::neutral()
->addCacheTags([
'_media_test_embed_filter_access:' . $entity
->getEntityTypeId() . ':' . $entity
->id(),
]);
}