Same name in this branch
  1. 10 core/modules/comment/src/Plugin/views/filter/UserUid.php \Drupal\comment\Plugin\views\filter\UserUid
  2. 10 core/modules/tracker/src/Plugin/views/filter/UserUid.php \Drupal\tracker\Plugin\views\filter\UserUid
Same name and namespace in other branches
  1. 8.9.x core/modules/tracker/src/Plugin/views/filter/UserUid.php \Drupal\tracker\Plugin\views\filter\UserUid
  2. 9 core/modules/tracker/src/Plugin/views/filter/UserUid.php \Drupal\tracker\Plugin\views\filter\UserUid

Hierarchy

  • class \Drupal\tracker\Plugin\views\filter\UserUid extends \Drupal\user\Plugin\views\filter\Name

Expanded class hierarchy of UserUid

File

core/modules/tracker/src/Plugin/views/filter/UserUid.php, line 14

Namespace

Drupal\tracker\Plugin\views\filter
View source
class UserUid extends Name {

  /**
   * {@inheritdoc}
   */
  public function query() {

    // Because this handler thinks it's an argument for a field on the {node}
    // table, we need to make sure {tracker_user} is JOINed and use its alias
    // for the WHERE clause.
    $tracker_user_alias = $this->query
      ->ensureTable('tracker_user');

    // Cast scalars to array so we can consistently use an IN condition.
    $this->query
      ->addWhere(0, "{$tracker_user_alias}.uid", (array) $this->value, 'IN');
  }

}

Members