RelationArgumentHandler ​
- Type
- Abstract Class
- Namespace
- craft\gql\base
- Inherits
- craft\gql\base\RelationArgumentHandler » craft\gql\base\ArgumentHandler
- Implements
- craft\gql\base\ArgumentHandlerInterface
- Extended by
- craft\gql\handlers\RelatedAssets, craft\gql\handlers\RelatedCategories, craft\gql\handlers\RelatedEntries, craft\gql\handlers\RelatedTags, craft\gql\handlers\RelatedUsers
- Since
- 3.6.0
Class RelationArgumentHandler
Protected Properties ​
| Property | Description |
|---|---|
| argumentManager | craft\gql\ArgumentManager |
| argumentName | string |
Public Methods ​
| Method | Description |
|---|---|
| handleArgumentCollection() | Handle an argument collection |
| setArgumentManager() | Set the current argument manager. Required for recursive argument preparation. |
handleArgumentCollection() ​
Handle an argument collection
Arguments ​
$argumentList(array) – Argument list to be used for the query
Returns ​
Protected Methods ​
| Method | Description |
|---|---|
| getIds() | Get the IDs of elements returned by configuring the provided element query with given criteria. |
| handleArgument() | Handle a single argument value |
| prepareRelatedTo() | Prepare the relatedTo argument. |
getIds() ​
Get the IDs of elements returned by configuring the provided element query with given criteria.
Arguments ​
$elementType(class-string<\craft\base\ElementInterface>)$criteriaList(array)
Returns ​
int[][]
handleArgument() ​
Handle a single argument value
Arguments ​
$argumentValue(mixed)
Returns ​
mixed
prepareRelatedTo() ​
Prepare the relatedTo argument.
Arguments ​
$relatedTo(array)