You are here

public function Uid::titleQuery in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 61
Contains \Drupal\user\Plugin\views\argument\Uid.

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));
}