Skip to content

RelatedCategories

Type
Class
Namespace
craft\gql\handlers
Inherits
craft\gql\handlers\RelatedCategories » craft\gql\base\RelationArgumentHandler » craft\gql\base\ArgumentHandler
Implements
craft\gql\base\ArgumentHandlerInterface
Since
3.6.0

Class RelatedCategories

View source

Protected Properties

PropertyDescription
argumentManagercraft\gql\ArgumentManager
argumentName

argumentName

Default value
'relatedToCategories'

View source

Public Methods

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

Protected Methods

MethodDescription
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.

handleArgument()

Handle a single argument value

View source

Arguments

  • $argumentValue (mixed)

Returns

mixed