function media_test_embed_entity_access in Drupal 10
Same name and namespace in other branches
- 9 core/modules/media/tests/modules/media_test_embed/media_test_embed.module \media_test_embed_entity_access()
Implements hook_entity_access().
File
- core/
modules/ media/ tests/ modules/ media_test_embed/ media_test_embed.module, line 31 - Helper module for the Media Embed text editor 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(),
]);
}