You are here

public function LdapVariableAttribute::query in Lightweight Directory Access Protocol (LDAP) 8.4

Same name in this branch
  1. 8.4 ldap_query/src/Plugin/views/filter/LdapVariableAttribute.php \Drupal\ldap_query\Plugin\views\filter\LdapVariableAttribute::query()
  2. 8.4 ldap_query/src/Plugin/views/argument/LdapVariableAttribute.php \Drupal\ldap_query\Plugin\views\argument\LdapVariableAttribute::query()
Same name and namespace in other branches
  1. 8.3 ldap_query/src/Plugin/views/argument/LdapVariableAttribute.php \Drupal\ldap_query\Plugin\views\argument\LdapVariableAttribute::query()

Set up the query for this argument.

The argument sent may be found at $this->argument.

Overrides VariableAttributeCustomization::query

File

ldap_query/src/Plugin/views/argument/LdapVariableAttribute.php, line 23

Class

LdapVariableAttribute
Let's the user choose which LDAP attribute to use from the query.

Namespace

Drupal\ldap_query\Plugin\views\argument

Code

public function query($group_by = FALSE) : void {
  $this
    ->ensureMyTable();
  $this->realField = $this->options['attribute_name'];
  $this->query
    ->addWhere(0, $this->realField, $this->argument, '=');
}