Variant ​
- Type
- Class
- Namespace
- craft\commerce\gql\arguments\elements
- Inherits
- craft\commerce\gql\arguments\elements\Variant » craft\gql\base\ElementArguments » craft\gql\base\Arguments
- Since
- 3.1
Class Variant
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.
Returns ​
array – $fields
getContentArguments()
​
- Since
- 3.1.2
Returns arguments defined by the content fields.