$errors[] =
$this->
t('%display: %filter can only be used on displays that use fields. Set the style or row format for that display to one using fields to use the combine field filter.',
['%display' =>
$this->displayHandler->display
['display_title'
], '%filter' =>
$this->
adminLabel()]);
} return $errors;
} /**
* {@inheritdoc}
*/
public function opEqual($expression) { // By default, things like opEqual uses add_where, that doesn't support
// complex expressions, so override opEqual (and all operators below).
$placeholder =
$this->
placeholder();
$operator =
$this->
getConditionOperator($this->
operator());
$this->query->
addWhereExpression($this->options
['group'
], "
$expression $operator $placeholder",
[$placeholder =>
$this->value
]);
} protected function opContains($expression) { $placeholder =
$this->
placeholder();
$operator =
$this->
getConditionOperator('LIKE'
);
$this->query->
addWhereExpression($this->options
['group'
], "
$expression $operator $placeholder",
[$placeholder => '%' .
$this->connection->
escapeLike($this->value
) . '%'
]);
} /**
* Filters by one or more words.
*
* By default opContainsWord uses add_where, that doesn't support complex
* expressions.
*
* @param string $expression
* The expression to add to the query.
*/