You are here

class GraphQLUnionType in GraphQL 8.3

Annotation for GraphQL union type plugins.

Hierarchy

Expanded class hierarchy of GraphQLUnionType

1 file declares its use of GraphQLUnionType
MockGraphQLPluginTrait.php in tests/src/Traits/MockGraphQLPluginTrait.php
1 string reference to 'GraphQLUnionType'
graphql.services.yml in ./graphql.services.yml
graphql.services.yml

File

src/Annotation/GraphQLUnionType.php, line 10

Namespace

Drupal\graphql\Annotation
View source
class GraphQLUnionType extends GraphQLAnnotationBase {

  /**
   * {@inheritdoc}
   */
  public $pluginType = GRAPHQL_UNION_TYPE_PLUGIN;

  /**
   * The list of types this union type contains.
   *
   * @var string[]
   */
  public $types = [];

  /**
   * The typed data type of this type.
   *
   * @var string|null
   */
  public $type = NULL;

}

Members

Namesort descending Modifiers Type Description Overrides
GraphQLAnnotationBase::$description public property The component description.
GraphQLAnnotationBase::$name public property The component name.
GraphQLAnnotationBase::$response_cache_contexts public property The cache contexts for caching the response.
GraphQLAnnotationBase::$response_cache_max_age public property The cache max age for caching the response.
GraphQLAnnotationBase::$response_cache_tags public property The cache tags for caching the response.
GraphQLAnnotationBase::$schema_cache_contexts public property The cache contexts for caching the type system definition in the schema.
GraphQLAnnotationBase::$schema_cache_max_age public property The cache max age for caching the type system definition in the schema.
GraphQLAnnotationBase::$schema_cache_tags public property The cache tags for caching the type system definition in the schema.
GraphQLAnnotationBase::$weight public property Weight for precedence calculations.
GraphQLAnnotationBase::__construct public function GraphQLAnnotationBase constructor. Overrides Plugin::__construct
GraphQLUnionType::$pluginType public property The plugin type. Overrides GraphQLAnnotationBase::$pluginType
GraphQLUnionType::$type public property The typed data type of this type.
GraphQLUnionType::$types public property The list of types this union type contains.
Plugin::$definition protected property The plugin definition read from the class annotation. 1
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get 5
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider