protected function EntityQueryEntities::resolveFromEntityIds in GraphQL 8.3
Resolves entities lazily through the entity buffer.
Parameters
string $type: The entity type.
array $ids: The entity ids to load.
mixed $metadata: The query context.
array $args: The field arguments array.
\Drupal\graphql\GraphQL\Execution\ResolveContext $context: The resolve context.
\GraphQL\Type\Definition\ResolveInfo $info: The resolve info object.
Return value
\Closure The deferred resolver.
1 call to EntityQueryEntities::resolveFromEntityIds()
- EntityQueryEntities::resolveValues in modules/
graphql_core/ src/ Plugin/ GraphQL/ Fields/ EntityQuery/ EntityQueryEntities.php - Retrieve the list of field values.
File
- modules/
graphql_core/ src/ Plugin/ GraphQL/ Fields/ EntityQuery/ EntityQueryEntities.php, line 147
Class
- EntityQueryEntities
- Retrieve the entity result set of an entity query.
Namespace
Drupal\graphql_core\Plugin\GraphQL\Fields\EntityQueryCode
protected function resolveFromEntityIds($type, $ids, $metadata, array $args, ResolveContext $context, ResolveInfo $info) {
$resolve = $this->entityBuffer
->add($type, $ids);
return function ($value, array $args, ResolveContext $context, ResolveInfo $info) use ($resolve, $metadata) {
return $this
->resolveEntities($resolve(), $metadata, $args, $context, $info);
};
}