public function LdapVariableAttribute::query in Lightweight Directory Access Protocol (LDAP) 8.3
Same name in this branch
- 8.3 ldap_query/src/Plugin/views/filter/LdapVariableAttribute.php \Drupal\ldap_query\Plugin\views\filter\LdapVariableAttribute::query()
- 8.3 ldap_query/src/Plugin/views/argument/LdapVariableAttribute.php \Drupal\ldap_query\Plugin\views\argument\LdapVariableAttribute::query()
Same name and namespace in other branches
- 8.4 ldap_query/src/Plugin/views/filter/LdapVariableAttribute.php \Drupal\ldap_query\Plugin\views\filter\LdapVariableAttribute::query()
Adjust the query.
Overrides VariableAttributeCustomization::query
File
- ldap_query/
src/ Plugin/ views/ filter/ LdapVariableAttribute.php, line 21
Class
- LdapVariableAttribute
- Let's the user choose which LDAP attribute to use from the query.
Namespace
Drupal\ldap_query\Plugin\views\filterCode
public function query() {
$this
->ensureMyTable();
$this->realField = $this->options['attribute_name'];
$field = "{$this->tableAlias}.{$this->realField}";
$info = $this
->operators();
if (!empty($info[$this->operator]['method'])) {
$this
->{$info[$this->operator]['method']}($field);
}
}