OptionField ​
- Type
- Class
- Namespace
- craft\gql\arguments
- Inherits
- craft\gql\arguments\OptionField » craft\gql\base\Arguments
- Since
- 3.4.6
Class OptionField
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.
Returns ​
array – $fields
Protected Methods ​
Method | Description |
---|---|
buildContentArguments() | Return the content arguments based on a list of contexts and an element class. |