function media_test_embed_entity_access

Same name and namespace in other branches
  1. 10 core/modules/media/tests/modules/media_test_embed/media_test_embed.module \media_test_embed_entity_access()
  2. 11.x 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

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.