protected function LdapAttribute::opEmpty in Lightweight Directory Access Protocol (LDAP) 8.4
Same name and namespace in other branches
- 8.3 ldap_query/src/Plugin/views/filter/LdapAttribute.php \Drupal\ldap_query\Plugin\views\filter\LdapAttribute::opEmpty()
Overrides StringFilter::opEmpty
File
- ldap_query/
src/ Plugin/ views/ filter/ LdapAttribute.php, line 77
Class
- LdapAttribute
- LDAP Attribute Views Filter.
Namespace
Drupal\ldap_query\Plugin\views\filterCode
protected function opEmpty($field) : void {
if ($this->operator === 'empty') {
$this->query
->addWhere($this->options['group'], $this->realField, '*', '!=');
}
else {
$this->query
->addWhere($this->options['group'], $this->realField, '*', '=');
}
}