SearchApiText.php in Search API 8
File
src/Plugin/views/filter/SearchApiText.php
View source
<?php
namespace Drupal\search_api\Plugin\views\filter;
class SearchApiText extends SearchApiString {
public function operators() {
$operators = parent::operators();
$operators['=']['title'] = $this
->t('contains');
$operators['!=']['title'] = $this
->t("doesn't contain");
$supported_operators = [
'=' => 1,
'!=' => 1,
'empty' => 1,
'not empty' => 1,
];
$operators = array_intersect_key($operators, $supported_operators);
return $operators;
}
}