LdapVariableAttribute.php in Lightweight Directory Access Protocol (LDAP) 8.4
File
ldap_query/src/Plugin/views/filter/LdapVariableAttribute.php
View source
<?php
declare (strict_types=1);
namespace Drupal\ldap_query\Plugin\views\filter;
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'];
$field = "{$this->tableAlias}.{$this->realField}";
$info = $this
->operators();
if (!empty($info[$this->operator]['method'])) {
$this
->{$info[$this->operator]['method']}($field);
}
}
}