public function SchemaExtensionPluginInterface::registerResolvers in GraphQL 8.4
Registers type and field resolvers in the shared registry.
Parameters
\Drupal\graphql\GraphQL\ResolverRegistryInterface $registry: The resolver registry.
2 methods override SchemaExtensionPluginInterface::registerResolvers()
- ComposableSchemaExampleExtension::registerResolvers in examples/
graphql_composable/ src/ Plugin/ GraphQL/ SchemaExtension/ ComposableSchemaExampleExtension.php - Registers type and field resolvers in the shared registry.
- ExampleSchemaExtension::registerResolvers in examples/
graphql_example/ src/ Plugin/ GraphQL/ SchemaExtension/ ExampleSchemaExtension.php - Registers type and field resolvers in the shared registry.
File
- src/
Plugin/ SchemaExtensionPluginInterface.php, line 20
Class
- SchemaExtensionPluginInterface
- Defines plugins that can extend the GraphQL schema definition.
Namespace
Drupal\graphql\PluginCode
public function registerResolvers(ResolverRegistryInterface $registry);