You are here

protected function ResolverRegistry::getRuntimeFieldResolver in Open Social 10.0.x

Same name and namespace in other branches
  1. 10.1.x modules/custom/social_graphql/src/GraphQL/ResolverRegistry.php \Drupal\social_graphql\GraphQL\ResolverRegistry::getRuntimeFieldResolver()

File

modules/custom/social_graphql/src/GraphQL/ResolverRegistry.php, line 30

Class

ResolverRegistry
The Open Social resolver registry.

Namespace

Drupal\social_graphql\GraphQL

Code

protected function getRuntimeFieldResolver($value, $args, ResolveContext $context, ResolveInfo $info) {

  // Try the default implementation but fallback to trying the interfaces.
  return parent::getRuntimeFieldResolver($value, $args, $context, $info) ?? $this
    ->getRuntimeFieldResolverOnInterface($value, $args, $context, $info);
}