You are here

protected function ResolverRegistry::getRuntimeFieldResolver in GraphQL 8.4

Returns the field resolver that should be used at runtime.

Parameters

mixed $value:

string $args:

\Drupal\graphql\GraphQL\Execution\ResolveContext $context:

\GraphQL\Type\Definition\ResolveInfo $info:

Return value

callable|null

1 call to ResolverRegistry::getRuntimeFieldResolver()
ResolverRegistry::resolveField in src/GraphQL/ResolverRegistry.php
Resolve a field.

File

src/GraphQL/ResolverRegistry.php, line 197

Class

ResolverRegistry
Contains all the mappings how to resolve a GraphQL request.

Namespace

Drupal\graphql\GraphQL

Code

protected function getRuntimeFieldResolver($value, $args, ResolveContext $context, ResolveInfo $info) {
  return $this
    ->getFieldResolverWithInheritance($info->parentType, $info->fieldName);
}