You are here

protected function LdapAttribute::opContains in Lightweight Directory Access Protocol (LDAP) 8.3

Same name and namespace in other branches
  1. 8.4 ldap_query/src/Plugin/views/filter/LdapAttribute.php \Drupal\ldap_query\Plugin\views\filter\LdapAttribute::opContains()

Overrides StringFilter::opContains

File

ldap_query/src/Plugin/views/filter/LdapAttribute.php, line 33

Class

LdapAttribute
LDAP Attribute Views Filter.

Namespace

Drupal\ldap_query\Plugin\views\filter

Code

protected function opContains($field) {
  $this->query
    ->addWhere($this->options['group'], $this->realField, "*{$this->value}*", '=');
}