Skip to content

ArgumentHandler ​

Type
Abstract Class
Namespace
craft\gql\base
Inherits
craft\gql\base\ArgumentHandler
Implements
craft\gql\base\ArgumentHandlerInterface
Extended by
craft\gql\base\RelationArgumentHandler, craft\gql\handlers\RelatedAssets, craft\gql\handlers\RelatedCategories, craft\gql\handlers\RelatedEntries, craft\gql\handlers\RelatedTags, craft\gql\handlers\RelatedUsers, craft\gql\handlers\Site, craft\gql\handlers\SiteId
Since
3.6.0

Class ArgumentHandler

View source

Protected Properties ​

PropertyDescription
argumentManagercraft\gql\ArgumentManager
argumentNamestring

argumentManager ​

Type
craft\gql\ArgumentManager
Default value
null

View source

argumentName ​

Type
string
Default value
null

View source

Public Methods ​

MethodDescription
handleArgumentCollection()Handle an argument collection
setArgumentManager()Set the current argument manager. Required for recursive argument preparation.

handleArgumentCollection() ​

Handle an argument collection

View source

Arguments ​

  • $argumentList (array) – Argument list to be used for the query

Returns ​

array

setArgumentManager() ​

Set the current argument manager. Required for recursive argument preparation.

View source

Arguments ​

Protected Methods ​

MethodDescription
handleArgument()Handle a single argument value

handleArgument() ​

Handle a single argument value

View source

Arguments ​

  • $argumentValue (mixed)

Returns ​

mixed