function Uid::titleQuery
Same name in other branches
- 8.9.x 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\argumentCode
public function titleQuery() {
return array_map(function ($account) {
return $account->label();
}, $this->storage
->loadMultiple($this->value));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.