You are here

interface SchemaPluginInterface in GraphQL 8.4

Same name and namespace in other branches
  1. 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

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'
graphql.services.yml in ./graphql.services.yml
graphql.services.yml

File

src/Plugin/SchemaPluginInterface.php, line 15

Namespace

Drupal\graphql\Plugin
View 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

Namesort descending Modifiers Type Description Overrides
DerivativeInspectionInterface::getBaseId public function Gets the base_plugin_id of the plugin instance. 1
DerivativeInspectionInterface::getDerivativeId public function Gets the derivative_id of the plugin instance. 1
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2
SchemaPluginInterface::getResolverRegistry public function Retrieves the resolver registry. 2
SchemaPluginInterface::getSchema public function Retrieves the schema. 1