SilverStripe\FullTextSearch\Search\Variants\SearchVariant::with
Lets you call any function on all variants that support it, in the same manner as "Object#extend" calls a method from extensions.
Usage: SearchVariant::with(...)->call($method, $arg1, ...);
Signature
public function with([string
$class = NULL,
[boolean
$includeSubclasses = true]] )
Parameters
$class
— string- - (Optional) a classname. If passed, only variants that apply to that class will be checked / called
$includeSubclasses
— boolean- - (Optional) If false, only variants that apply strictly to the passed class or its super-classes
will be checked. If true (the default), variants that apply to any sub-class of the passed class with also be checked
Returns
- SearchVariant_Caller
- An object with one method, call()