GlobalSetType ​
- Type
- Class
- Namespace
- craft\gql\types\generators
- Inherits
- craft\gql\types\generators\GlobalSetType » craft\gql\base\Generator
- Implements
- craft\gql\base\GeneratorInterface, craft\gql\base\SingleGeneratorInterface
- Since
- 3.3.0
Class GlobalSetType
Public Methods ​
Method | Description |
---|---|
generateType() | Generate a single GraphQL type based on a context. |
generateTypes() | Generate GraphQL types. |
getName() |
generateType()
​
- Since
- 3.5.0
Generate a single GraphQL type based on a context.
Arguments ​
$context
(mixed
) – Context for generated types
Returns ​
mixed
, null
generateTypes()
​
Generate GraphQL types.
Arguments ​
$context
(mixed
) – Context for generated types
Returns ​
getName()
​
Arguments ​
$context
Protected Methods ​
Method | Description |
---|---|
getContentFields() | Get content fields for a given context. |