You are here

interface TypePluginInterface in GraphQL 8.3

Interface for type and field plugins of all sorts.

Hierarchy

Expanded class hierarchy of TypePluginInterface

All classes that implement TypePluginInterface

6 files declare their use of TypePluginInterface
EnumPluginBase.php in src/Plugin/GraphQL/Enums/EnumPluginBase.php
InputTypePluginBase.php in src/Plugin/GraphQL/InputTypes/InputTypePluginBase.php
InterfacePluginBase.php in src/Plugin/GraphQL/Interfaces/InterfacePluginBase.php
ScalarPluginBase.php in src/Plugin/GraphQL/Scalars/ScalarPluginBase.php
TypePluginBase.php in src/Plugin/GraphQL/Types/TypePluginBase.php

... See full list

File

src/Plugin/TypePluginInterface.php, line 11

Namespace

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

  /**
   * @param \Drupal\graphql\Plugin\SchemaBuilderInterface $builder
   * @param \Drupal\graphql\Plugin\TypePluginManager $manager
   * @param $definition
   * @param $id
   *
   * @return mixed
   */
  public static function createInstance(SchemaBuilderInterface $builder, TypePluginManager $manager, $definition, $id);

  /**
   * Returns the plugin's type or field definition for the schema.
   *
   * @return array
   *   The type or field definition of the plugin.
   */
  public function getDefinition();

}

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
TypePluginInterface::createInstance public static function 6
TypePluginInterface::getDefinition public function Returns the plugin's type or field definition for the schema. 6