Skip to content
Snippets Groups Projects
Commit ee9bb516 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2003554 by jeroen12345, NonProfit: Rename Views method op_contains() to opContains().

parent fb03231e
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -96,7 +96,7 @@ function opEqual($expression) {
$this->query->add_where_expression($this->options['group'], "$expression $operator $placeholder", array($placeholder => $this->value));
}
function op_contains($expression) {
protected function opContains($expression) {
$placeholder = $this->placeholder();
$this->query->add_where_expression($this->options['group'], "$expression LIKE $placeholder", array($placeholder => '%' . db_like($this->value) . '%'));
}
......
......@@ -53,7 +53,7 @@ function operators() {
'contains' => array(
'title' => t('Contains'),
'short' => t('contains'),
'method' => 'op_contains',
'method' => 'opContains',
'values' => 1,
),
'word' => array(
......@@ -264,7 +264,7 @@ public function opEqual($field) {
$this->query->add_where($this->options['group'], $field, $this->value, $this->operator());
}
function op_contains($field) {
protected function opContains($field) {
$this->query->add_where($this->options['group'], $field, '%' . db_like($this->value) . '%', 'LIKE');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment