MenuTreeParameters::addCondition
public function MenuTreeParameters::addCondition
public MenuTreeParameters::addCondition($definition_field, $value, $operator = NULL)
Adds a custom query condition.
Parameters
string $definition_field: Only conditions that are testing menu link definition fields are allowed.
mixed $value: The value to test the link definition field against. In most cases, this is a scalar. For more complex options, it is an array. The meaning of each element in the array is dependent on the $operator.
string|null $operator: (optional) The comparison operator, such as =, <, or >=. It also accepts more complex options such as IN, LIKE, or BETWEEN. If NULL, defaults to the = operator.
Return value
$this