You are here

public function ResolverRegistry::getFieldResolver in GraphQL 8.4

Return the field resolver for a given type and field name.

Parameters

string $type:

string $field:

Return value

callable|null

Overrides ResolverRegistryInterface::getFieldResolver

1 call to ResolverRegistry::getFieldResolver()
ResolverRegistry::getFieldResolverWithInheritance in src/GraphQL/ResolverRegistry.php
Get a field resolver for the type or any of the interfaces it implements.

File

src/GraphQL/ResolverRegistry.php, line 116

Class

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

Namespace

Drupal\graphql\GraphQL

Code

public function getFieldResolver($type, $field) {
  return $this->fieldResolvers[$type][$field] ?? NULL;
}