OptionField

Type
Class
Namespace
craft\gql\arguments
Inherits
craft\gql\arguments\OptionField ยป craft\gql\base\Arguments
Since
3.4.6

Class OptionField

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.

# getArguments()

Returns the argument fields to use in GraphQL type definitions.

View source (opens new window)

Returns

array (opens new window) โ€“ $fields

# Protected Methods

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