You are here

public function Uid::titleQuery in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/user/src/Plugin/views/argument/Uid.php \Drupal\user\Plugin\views\argument\Uid::titleQuery()

Override the behavior of title(). Get the name of the user.

Return value

array A list of usernames.

Overrides NumericArgument::titleQuery

File

core/modules/user/src/Plugin/views/argument/Uid.php, line 60

Class

Uid
Argument handler to accept a user id.

Namespace

Drupal\user\Plugin\views\argument

Code

public function titleQuery() {
  return array_map(function ($account) {
    return $account
      ->label();
  }, $this->storage
    ->loadMultiple($this->value));
}