ElementArguments

Type
Abstract Class
Namespace
craft\gql\base
Inherits
craft\gql\base\ElementArguments ยป craft\gql\base\Arguments
Extended by
craft\gql\arguments\elements\Asset, craft\gql\arguments\elements\Category, craft\gql\arguments\elements\Entry, craft\gql\arguments\elements\GlobalSet, craft\gql\arguments\elements\MatrixBlock, craft\gql\arguments\elements\Tag, craft\gql\arguments\elements\User, craft\gql\base\StructureElementArguments
Since
3.3.0

Class ElementArguments

View source (opens new window)

# Public Methods

Method Description
getArguments() Returns the argument fields to use in GraphQL type definitions.
getContentArguments() Returns arguments defined by the content fields.
getDraftArguments() Return the arguments used for elements that support drafts.
getRevisionArguments() Return the arguments used for elements that support revisions.
getStatusArguments() Return the various status arguments.

# getArguments()

Returns the argument fields to use in GraphQL type definitions.

View source (opens new window)

Returns

array (opens new window) โ€“ $fields

# getDraftArguments()

Return the arguments used for elements that support drafts.

View source (opens new window)

Returns

array (opens new window)

# getRevisionArguments()

Since
3.6.8

Return the arguments used for elements that support revisions.

View source (opens new window)

Returns

array (opens new window)

# getStatusArguments()

Since
3.6.7

Return the various status arguments.

View source (opens new window)

Returns

array (opens new window)

# Protected Methods

Method Description
buildContentArguments() Return the content arguments based on a list of contexts and an element class.