
| Current Path : /var/www/html/rocksensor/web/core/modules/tracker/src/Plugin/views/argument/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/rocksensor/web/core/modules/tracker/src/Plugin/views/argument/UserUid.php |
<?php
namespace Drupal\tracker\Plugin\views\argument;
use Drupal\comment\Plugin\views\argument\UserUid as CommentUserUid;
use Drupal\views\Attribute\ViewsArgument;
/**
* UID argument to check for nodes that user posted or commented on.
*
* @ingroup views_argument_handlers
*/
#[ViewsArgument(
id: 'tracker_user_uid',
)]
class UserUid extends CommentUserUid {
/**
* {@inheritdoc}
*/
public function query($group_by = FALSE) {
// 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');
$this->query->addWhere(0, "$tracker_user_alias.uid", $this->argument);
}
}