Skip to content

SingleGeneratorInterface

Type
Interface
Namespace
craft\gql\base
Implemented by
craft\gql\types\generators\AddressType, craft\gql\types\generators\AssetType, craft\gql\types\generators\CategoryType, craft\gql\types\generators\ElementType, craft\gql\types\generators\EntryType, craft\gql\types\generators\GlobalSetType, craft\gql\types\generators\TableRowType, craft\gql\types\generators\TagType, craft\gql\types\generators\UserType
Since
3.5.0

SingleGeneratorInterface defines the common interface to be implemented by generator classes that support generating a single GraphQL type at a time.

View source

Public Methods

MethodDescription
generateType()Generate a single GraphQL type based on a context.

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