TagType

Type
Class
Namespace
craft\gql\types\generators
Inherits
craft\gql\types\generators\TagType » craft\gql\base\Generator
Implements
craft\gql\base\GeneratorInterface, craft\gql\base\SingleGeneratorInterface
Since
3.3.0

Class TagType

View source (opens new window)

# Public Methods

Method Description
generateType() Generate a single GraphQL type based on a context.
generateTypes() Generate GraphQL types.

# generateType()

Since
3.5.0

Generate a single GraphQL type based on a context.

View source (opens new window)

Arguments

  • $context (mixed) – Context for generated types

Returns

mixed, null (opens new window)

# generateTypes()

Generate GraphQL types.

View source (opens new window)

Arguments

  • $context (mixed) – Context for generated types

Returns

craft\gql\base\ObjectType[]

# Protected Methods

Method Description
getContentFields() Get content fields for a given context.