You are here

interface SchemaExtensionPluginInterface in GraphQL 8.4

Defines plugins that can extend the GraphQL schema definition.

Hierarchy

Expanded class hierarchy of SchemaExtensionPluginInterface

All classes that implement SchemaExtensionPluginInterface

2 files declare their use of SchemaExtensionPluginInterface
SdlSchemaExtensionPluginBase.php in src/Plugin/GraphQL/SchemaExtension/SdlSchemaExtensionPluginBase.php
SdlSchemaPluginBase.php in src/Plugin/GraphQL/Schema/SdlSchemaPluginBase.php
1 string reference to 'SchemaExtensionPluginInterface'
graphql.services.yml in ./graphql.services.yml
graphql.services.yml

File

src/Plugin/SchemaExtensionPluginInterface.php, line 12

Namespace

Drupal\graphql\Plugin
View source
interface SchemaExtensionPluginInterface extends PluginInspectionInterface, DerivativeInspectionInterface {

  /**
   * Registers type and field resolvers in the shared registry.
   *
   * @param \Drupal\graphql\GraphQL\ResolverRegistryInterface $registry
   *   The resolver registry.
   */
  public function registerResolvers(ResolverRegistryInterface $registry);

  /**
   * Retrieves the base schema definition.
   *
   * @return string|null
   *   The base schema definition.
   */
  public function getBaseDefinition();

  /**
   * Retrieves the extension schema definition.
   *
   * @return string|null
   *   The extension schema definition.
   */
  public function getExtensionDefinition();

}

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
SchemaExtensionPluginInterface::getBaseDefinition public function Retrieves the base schema definition. 1
SchemaExtensionPluginInterface::getExtensionDefinition public function Retrieves the extension schema definition. 1
SchemaExtensionPluginInterface::registerResolvers public function Registers type and field resolvers in the shared registry. 2