Entry

Type
Class
Namespace
craft\gql\interfaces\elements
Inherits
craft\gql\interfaces\elements\Entry » craft\gql\interfaces\Structure » craft\gql\interfaces\Element » craft\gql\base\InterfaceType
Uses traits
craft\gql\base\GqlTypeTrait
Since
3.3.0

Class Entry

View source

Public Methods

MethodDescription
getFieldDefinitions()List of fields for this type.
getName()Returns the schema object name
getType()Returns an instance of this schema object's type as provided by entity registry
getTypeGenerator()Returns the associated type generator class.

getFieldDefinitions()

List of fields for this type.

View source

Returns

array

getName()

Returns the schema object name

View source

Returns

string

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

getTypeGenerator()

Returns the associated type generator class.

View source

Returns

string

Protected Methods

MethodDescription
getConditionalFields()Return conditional fields for this type.

getConditionalFields()

Return conditional fields for this type.

View source

Returns

array