interface SchemaPluginInterface in GraphQL 8.4
Same name and namespace in other branches
- 8.3 src/Plugin/SchemaPluginInterface.php \Drupal\graphql\Plugin\SchemaPluginInterface
Defines a schema plugin that returns a GraphQL schema part.
A schema plugin also defines how that schema is resolved to values with data producers.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Component\Plugin\DerivativeInspectionInterface
- interface \Drupal\graphql\Plugin\SchemaPluginInterface
Expanded class hierarchy of SchemaPluginInterface
All classes that implement SchemaPluginInterface
3 files declare their use of SchemaPluginInterface
- SdlSchemaPluginBase.php in src/
Plugin/ GraphQL/ Schema/ SdlSchemaPluginBase.php - Server.php in src/
Entity/ Server.php - Validator.php in src/
GraphQL/ Validator.php
1 string reference to 'SchemaPluginInterface'
File
- src/
Plugin/ SchemaPluginInterface.php, line 15
Namespace
Drupal\graphql\PluginView source
interface SchemaPluginInterface extends PluginInspectionInterface, DerivativeInspectionInterface {
/**
* Retrieves the schema.
*
* @param \Drupal\graphql\GraphQL\ResolverRegistryInterface $registry
* The resolver registry.
*
* @return \GraphQL\Type\Schema
* The schema.
*/
public function getSchema(ResolverRegistryInterface $registry);
/**
* Retrieves the resolver registry.
*
* @todo Instead, this should be configuration.
*
* @return \Drupal\graphql\GraphQL\ResolverRegistryInterface
* The resolver registry.
*/
public function getResolverRegistry();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DerivativeInspectionInterface:: |
public | function | Gets the base_plugin_id of the plugin instance. | 1 |
DerivativeInspectionInterface:: |
public | function | Gets the derivative_id of the plugin instance. | 1 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |
SchemaPluginInterface:: |
public | function | Retrieves the resolver registry. | 2 |
SchemaPluginInterface:: |
public | function | Retrieves the schema. | 1 |