UserUid.php in Drupal 10
File
core/modules/tracker/src/Plugin/views/filter/UserUid.php
View source
<?php
namespace Drupal\tracker\Plugin\views\filter;
use Drupal\user\Plugin\views\filter\Name;
class UserUid extends Name {
public function query() {
$tracker_user_alias = $this->query
->ensureTable('tracker_user');
$this->query
->addWhere(0, "{$tracker_user_alias}.uid", (array) $this->value, 'IN');
}
}
Classes
Name |
Description |
UserUid |
UID filter to check for nodes that a user posted or commented on. |