You are here

LdapAttribute.php in Lightweight Directory Access Protocol (LDAP) 8.4

File

ldap_query/src/Plugin/views/argument/LdapAttribute.php
View source
<?php

declare (strict_types=1);
namespace Drupal\ldap_query\Plugin\views\argument;

use Drupal\views\Plugin\views\argument\ArgumentPluginBase;

/**
 * LDAP Attribute Views Argument.
 *
 * @ingroup views_argument_handlers
 *
 * @ViewsArgument("ldap_attribute")
 */
class LdapAttribute extends ArgumentPluginBase {

  /**
   * {@inheritdoc}
   */
  public function query($group_by = FALSE) : void {
    $this
      ->ensureMyTable();
    $this->query
      ->addWhere(0, $this->realField, $this->argument, '=');
  }

}

Classes

Namesort descending Description
LdapAttribute LDAP Attribute Views Argument.