GqlTypeTrait

Type
Trait
Namespace
craft\gql\base
Implemented by
craft\gql\base\InterfaceType, craft\gql\base\Mutation, craft\gql\base\Query, craft\gql\interfaces\Element, craft\gql\interfaces\Structure, craft\gql\interfaces\elements\Asset, craft\gql\interfaces\elements\Category, craft\gql\interfaces\elements\Entry, craft\gql\interfaces\elements\GlobalSet, craft\gql\interfaces\elements\MatrixBlock, craft\gql\interfaces\elements\Tag, craft\gql\interfaces\elements\User, craft\gql\mutations\Asset, craft\gql\mutations\Category, craft\gql\mutations\Entry, craft\gql\mutations\GlobalSet, craft\gql\mutations\Ping, craft\gql\mutations\Tag, craft\gql\queries\Asset, craft\gql\queries\Category, craft\gql\queries\Entry, craft\gql\queries\GlobalSet, craft\gql\queries\Ping, craft\gql\queries\Tag, craft\gql\queries\User, craft\gql\types\Mutation, craft\gql\types\Query
Since
3.3.0

Trait GqlTypeTrait

View source

# Public Methods

Method Description
getFieldDefinitions() List of fields for this type.
getType() Returns an instance of this schema object's type as provided by entity registry

# getFieldDefinitions()

List of fields for this type.

View source

Returns

array

# getType()

Returns an instance of this schema object's type as provided by entity registry

View source

Arguments

  • $fields (array) – Optional fields to use

Returns

\GraphQL\Type\Definition\ObjectType

# Protected Methods

Method Description
getConditionalFields() Return conditional fields for this type.

# getConditionalFields()

Return conditional fields for this type.

View source

Returns

array