class GraphQLType in GraphQL 8.3
Annotation for GraphQL type plugins.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\graphql\Annotation\GraphQLAnnotationBase
- class \Drupal\graphql\Annotation\GraphQLType
- class \Drupal\graphql\Annotation\GraphQLAnnotationBase
Expanded class hierarchy of GraphQLType
1 file declares its use of GraphQLType
- MockGraphQLPluginTrait.php in tests/
src/ Traits/ MockGraphQLPluginTrait.php
1 string reference to 'GraphQLType'
22 classes are annotated with GraphQLType
- Bike in tests/
modules/ graphql_plugin_test/ src/ Plugin/ GraphQL/ Types/ Bike.php - A bike type.
- Car in tests/
modules/ graphql_plugin_test/ src/ Plugin/ GraphQL/ Types/ Car.php - A bike type.
- ConstraintViolation in modules/
graphql_core/ src/ Plugin/ GraphQL/ Types/ Mutations/ ConstraintViolation.php - GraphQL type for validation constraint violations.
- DefaultInternalUrl in modules/
graphql_core/ src/ Plugin/ GraphQL/ Types/ Routing/ DefaultInternalUrl.php - Plugin annotation @GraphQLType( id = "default_internal_url", name = "DefaultInternalUrl", interfaces = {"InternalUrl"}, weight = -1 )
- EntityBundle in modules/
graphql_core/ src/ Plugin/ GraphQL/ Types/ Entity/ EntityBundle.php - Plugin annotation @GraphQLType( id = "entity_bundle", schema_cache_tags = {"entity_types", "entity_bundles"}, deriver = "Drupal\graphql_core\Plugin\Deriver\Types\EntityBundleDeriver" )
File
- src/
Annotation/ GraphQLType.php, line 10
Namespace
Drupal\graphql\AnnotationView source
class GraphQLType extends GraphQLAnnotationBase {
/**
* {@inheritdoc}
*/
public $pluginType = GRAPHQL_TYPE_PLUGIN;
/**
* The list of interfaces implemented by this type.
*
* Fields annotated to interfaces will be inherited.
*
* @var array
*/
public $interfaces = [];
/**
* The list of union types containing this type.
*
* @var array
*/
public $unions = [];
/**
* The typed data type of this type.
*
* @var string|null
*/
public $type = NULL;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
GraphQLAnnotationBase:: |
public | property | The component description. | |
GraphQLAnnotationBase:: |
public | property | The component name. | |
GraphQLAnnotationBase:: |
public | property | The cache contexts for caching the response. | |
GraphQLAnnotationBase:: |
public | property | The cache max age for caching the response. | |
GraphQLAnnotationBase:: |
public | property | The cache tags for caching the response. | |
GraphQLAnnotationBase:: |
public | property | The cache contexts for caching the type system definition in the schema. | |
GraphQLAnnotationBase:: |
public | property | The cache max age for caching the type system definition in the schema. | |
GraphQLAnnotationBase:: |
public | property | The cache tags for caching the type system definition in the schema. | |
GraphQLAnnotationBase:: |
public | property | Weight for precedence calculations. | |
GraphQLAnnotationBase:: |
public | function |
GraphQLAnnotationBase constructor. Overrides Plugin:: |
|
GraphQLType:: |
public | property | The list of interfaces implemented by this type. | |
GraphQLType:: |
public | property |
The plugin type. Overrides GraphQLAnnotationBase:: |
|
GraphQLType:: |
public | property | The typed data type of this type. | |
GraphQLType:: |
public | property | The list of union types containing this type. | |
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |