LdapVariableAttribute.php in Lightweight Directory Access Protocol (LDAP) 8.4
File
ldap_query/src/Plugin/views/argument/LdapVariableAttribute.php
View source
<?php
declare (strict_types=1);
namespace Drupal\ldap_query\Plugin\views\argument;
use Drupal\ldap_query\Plugin\views\VariableAttributeCustomization;
class LdapVariableAttribute extends LdapAttribute {
use VariableAttributeCustomization;
public function query($group_by = FALSE) : void {
$this
->ensureMyTable();
$this->realField = $this->options['attribute_name'];
$this->query
->addWhere(0, $this->realField, $this->argument, '=');
}
}