InterfaceType

Type
Abstract Class
Namespace
craft\gql\base
Inherits
craft\gql\base\InterfaceType
Extended by
craft\gql\interfaces\Element, craft\gql\interfaces\Structure, craft\gql\interfaces\elements\Address, 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
Since
3.3.0

Class InterfaceType

View source (opens new window)

# Public Methods

Method Description
getFieldDefinitions() List of fields for this type.
getName() Returns the schema object name
getTypeGenerator() Returns the associated type generator class.
resolveElementTypeName() Resolve an element type name.

# getFieldDefinitions()

List of fields for this type.

View source (opens new window)

Returns

array (opens new window)

# getName()

Returns the schema object name

View source (opens new window)

Returns

string (opens new window)

# getTypeGenerator()

Returns the associated type generator class.

View source (opens new window)

Returns

string (opens new window)

# resolveElementTypeName()

Since
3.5.0

Resolve an element type name.

View source (opens new window)

Arguments

Returns

string (opens new window)