Skip to content

Element ​

Type
Class
Namespace
craft\gql\interfaces
Inherits
craft\gql\interfaces\Element » craft\gql\base\InterfaceType
Implements
craft\gql\base\SingularTypeInterface
Extended by
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 Element

View source

Public Methods ​

MethodDescription
getDraftFieldDefinitions()List the draft field definitions.
getFieldDefinitions()List of fields for this type.
getName()Returns the schema object name
getType()Return an instance of the GraphQL type.
getTypeGenerator()Returns the associated type generator class.
resolveElementTypeName()Resolve an element type name.

getDraftFieldDefinitions() ​

List the draft field definitions.

View source

Returns ​

array

getFieldDefinitions() ​

List of fields for this type.

View source

Returns ​

array

getName() ​

Returns the schema object name

View source

Returns ​

string

getType() ​

Return an instance of the GraphQL type.

View source

Returns ​

\GraphQL\Type\Definition\Type

getTypeGenerator() ​

Returns the associated type generator class.

View source

Returns ​

string