class GraphQLScalar in GraphQL 8.3
Annotation for GraphQL scalar plugins.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\graphql\Annotation\GraphQLAnnotationBase
- class \Drupal\graphql\Annotation\GraphQLScalar
- class \Drupal\graphql\Annotation\GraphQLAnnotationBase
Expanded class hierarchy of GraphQLScalar
1 string reference to 'GraphQLScalar'
17 classes are annotated with GraphQLScalar
- Any in modules/
graphql_core/ src/ Plugin/ GraphQL/ Scalars/ TypedData/ Any.php - Plugin annotation @GraphQLScalar( id = "any", name = "Any", type = "any", deriver = "Drupal\graphql_core\Plugin\Deriver\Scalars\TypedDataPrimitiveFallback" )
- BooleanScalar in src/
Plugin/ GraphQL/ Scalars/ Internal/ BooleanScalar.php - Plugin annotation @GraphQLScalar( id = "boolean", name = "Boolean", type = "boolean" )
- DateScalar in src/
Plugin/ GraphQL/ Scalars/ Internal/ DateScalar.php - Plugin annotation @GraphQLScalar( id = "date", name = "Date" )
- DateTimeIso8601 in modules/
graphql_core/ src/ Plugin/ GraphQL/ Scalars/ TypedData/ DateTimeIso8601.php - Plugin annotation @GraphQLScalar( id = "date_time_iso8601", name = "DateTimeIso8601", type = "datetime_iso8601" )
- DateTimeScalar in src/
Plugin/ GraphQL/ Scalars/ Internal/ DateTimeScalar.php - Plugin annotation @GraphQLScalar( id = "date_time", name = "DateTime" )
File
- src/
Annotation/ GraphQLScalar.php, line 10
Namespace
Drupal\graphql\AnnotationView source
class GraphQLScalar extends GraphQLAnnotationBase {
/**
* {@inheritdoc}
*/
public $pluginType = GRAPHQL_SCALAR_PLUGIN;
/**
* 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:: |
|
GraphQLScalar:: |
public | property |
The plugin type. Overrides GraphQLAnnotationBase:: |
|
GraphQLScalar:: |
public | property | The typed data type of 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:: |