class GraphQLField in GraphQL 8.3
Annotation for GraphQL field plugins.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\graphql\Annotation\GraphQLAnnotationBase
- class \Drupal\graphql\Annotation\GraphQLField
- class \Drupal\graphql\Annotation\GraphQLAnnotationBase
Expanded class hierarchy of GraphQLField
1 file declares its use of GraphQLField
- MockGraphQLPluginTrait.php in tests/
src/ Traits/ MockGraphQLPluginTrait.php
1 string reference to 'GraphQLField'
96 classes are annotated with GraphQLField
- Alias in modules/
graphql_core/ src/ Plugin/ GraphQL/ Fields/ Routing/ InternalUrl/ Alias.php - Plugin annotation @GraphQLField( id = "internal_url_path_alias", secure = true, name = "pathAlias", description = @Translation("The url's path alias if any."), response_cache_contexts = {"languages:language_url"}, type = "String", …
- AvailableLanguages in modules/
graphql_core/ src/ Plugin/ GraphQL/ Fields/ Languages/ AvailableLanguages.php - List site-wide configured languages.
- BackupCar in tests/
modules/ graphql_plugin_test/ src/ Plugin/ GraphQL/ Fields/ BackupCar.php - A car in a car. Not sure what's so funny about that.
- BlocksByRegion in modules/
graphql_core/ src/ Plugin/ GraphQL/ Fields/ Blocks/ BlocksByRegion.php - List all blocks within a theme region.
- Breadcrumbs in modules/
graphql_core/ src/ Plugin/ GraphQL/ Fields/ Breadcrumbs/ Breadcrumbs.php - Retrieve the breadcrumbs.
File
- src/
Annotation/ GraphQLField.php, line 10
Namespace
Drupal\graphql\AnnotationView source
class GraphQLField extends GraphQLAnnotationBase {
/**
* {@inheritdoc}
*/
public $pluginType = GRAPHQL_FIELD_PLUGIN;
/**
* Mark this field as "secure" to be resolved by untrusted consumers.
*
* @var bool
*/
public $secure = FALSE;
/**
* The id of the GraphQLType or GraphQLInterface this field is bound to.
*
* If omitted, the field is considered a "root" field.
*
* @var string[]
*/
public $parents = [];
/**
* The field type.
*
* Must be a registered Interface, Type, Scalar or Enum.
*
* If an associative array is provided - the Enum type will be created
* automatically for the given set of values. But $enum_type_name has to be
* defined in this case.
*
* @var string|array
*/
public $type = NULL;
/**
* The field arguments.
*
* Array keyed by argument names with Scalar or Input Type names as values.
*
* @var array
*/
public $arguments = [];
/**
* Contextual arguments.
*
* List of argument identifiers that will be merged with the current query
* context.
*
* @var string[]
*/
public $contextual_arguments = [];
/**
* The deprecation reason or FALSE if the field is not deprecated.
*
* @var string|bool
*/
public $deprecated = FALSE;
}
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:: |
|
GraphQLField:: |
public | property | The field arguments. | |
GraphQLField:: |
public | property | Contextual arguments. | |
GraphQLField:: |
public | property | The deprecation reason or FALSE if the field is not deprecated. | |
GraphQLField:: |
public | property | The id of the GraphQLType or GraphQLInterface this field is bound to. | |
GraphQLField:: |
public | property |
The plugin type. Overrides GraphQLAnnotationBase:: |
|
GraphQLField:: |
public | property | Mark this field as "secure" to be resolved by untrusted consumers. | |
GraphQLField:: |
public | property | The field 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:: |