Site ​
- Type
- Class
- Namespace
- craft\gql\types
- Inherits
- craft\gql\types\Site » craft\gql\base\ObjectType »
GraphQL\Type\Definition\ObjectType - Implements
- craft\gql\base\SingularTypeInterface
- Since
- 5.12.0
Class Site
Public Methods ​
| Method | Description |
|---|---|
| __construct() | |
| getFieldDefinitions() | Returns the type’s field definitions. |
| getName() | Return the name of the GraphQL type. |
| getType() | Return an instance of the GraphQL type. |
| resolveWithDirectives() | Resolve a value with the directives that apply to it. |
getFieldDefinitions() ​
Returns the type’s field definitions.
Returns ​
getName() ​
Return the name of the GraphQL type.
Returns ​
getType() ​
Return an instance of the GraphQL type.
Returns ​
\GraphQL\Type\Definition\Type
Protected Methods ​
| Method | Description |
|---|---|
| resolve() | Resolve a field value with arguments, context and resolve information. |
resolve() ​
Resolve a field value with arguments, context and resolve information.
Arguments ​
$source(mixed) – The parent data source to use for resolving this field$arguments(array) – Arguments for resolving this field.$context(mixed) – The context shared between all resolvers$resolveInfo(\GraphQL\Type\Definition\ResolveInfo) – The resolve information
Returns ​
mixed – $result