Skip to content

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

View source

Public Methods

MethodDescription
generateType()Generate a single GraphQL type based on a context.
generateTypes()Generate GraphQL types.
getName()Returns the generator name.

generateType()

Since
3.5.0

Generate a single GraphQL type based on a context.

View source

Arguments

  • $context (mixed) – Context for generated types

Returns

mixed

generateTypes()

Generate GraphQL types.

View source

Arguments

  • $context (mixed) – Context for generated types

Returns

craft\gql\base\ObjectType[]

getName()

Returns the generator name.

View source

Arguments

  • $context

Protected Methods

MethodDescription
getContentFields()Get content fields for a given context.