class ApplyVersionFilters (View source)

deprecated 4.8..5.0 Use silverstripe/graphql:^4 functionality.

Methods

applyToReadingState($versioningArgs)

Use this as a fallback where resolver results aren't queried as a DataList, but rather use DataObject::get_one(). Example: SiteTree::get_by_link().

applyToList(DataList $list, array $versioningArgs)

No description

validateArgs($versioningArgs)

No description

Details

applyToReadingState($versioningArgs)

Use this as a fallback where resolver results aren't queried as a DataList, but rather use DataObject::get_one(). Example: SiteTree::get_by_link().

Note that the 'status' and 'version' modes are not supported. Wrap this call in {@link Versioned::withVersionedMode()} in order to avoid side effects.

Parameters

$versioningArgs

applyToList(DataList $list, array $versioningArgs)

Parameters

DataList $list
array $versioningArgs

validateArgs($versioningArgs)

Parameters

$versioningArgs

Exceptions

InvalidArgumentException