function media_test_embed_entity_access
Same name in other branches
- 9 core/modules/media/tests/modules/media_test_embed/media_test_embed.module \media_test_embed_entity_access()
- 10 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 33
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(),
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.