diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php index c80e39d..22ad2b4 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php @@ -59,13 +59,13 @@ function operators() { 'word' => array( 'title' => t('Contains any word'), 'short' => t('has word'), - 'method' => 'op_word', + 'method' => 'addContainsWord', 'values' => 1, ), 'allwords' => array( 'title' => t('Contains all words'), 'short' => t('has all'), - 'method' => 'op_word', + 'method' => 'addContainsWord', 'values' => 1, ), 'starts' => array( @@ -268,7 +268,7 @@ function op_contains($field) { $this->query->add_where($this->options['group'], $field, '%' . db_like($this->value) . '%', 'LIKE'); } - function op_word($field) { + function addContainsWord($field) { $where = $this->operator == 'word' ? db_or() : db_and(); // Don't filter on empty strings.