modules/graphql_core/src/Plugin/GraphQL/Fields/EntityQuery/EntityQueryEntities.php 1 location
|
@@ 73-78 (lines=6) @@
|
| 70 |
|
foreach ($entities as $entity) { |
| 71 |
|
$access = $entity->access('view', NULL, TRUE); |
| 72 |
|
|
| 73 |
|
if ($access->isAllowed()) { |
| 74 |
|
yield $entity->addCacheableDependency($access); |
| 75 |
|
} |
| 76 |
|
else { |
| 77 |
|
yield new CacheableValue(NULL, [$access]); |
| 78 |
|
} |
| 79 |
|
} |
| 80 |
|
}; |
| 81 |
|
} |
modules/graphql_core/src/Plugin/GraphQL/Fields/Routing/RouteEntity.php 1 location
|
@@ 93-98 (lines=6) @@
|
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
$access = $entity->access('view', NULL, TRUE); |
| 93 |
|
if ($access->isAllowed()) { |
| 94 |
|
yield $entity->addCacheableDependency($access); |
| 95 |
|
} |
| 96 |
|
else { |
| 97 |
|
yield new CacheableValue(NULL, [$access]); |
| 98 |
|
} |
| 99 |
|
} |
| 100 |
|
} |
| 101 |
|
|