Skip to content

RelatedEntries ​

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

Class RelatedEntries

View source

Protected Properties ​

PropertyDescription
argumentManagercraft\gql\ArgumentManager
argumentName

argumentName ​

Default value
'relatedToEntries'

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