Override the behavior of title(). Get the name of the user.
array A list of usernames.
Overrides Numeric::titleQuery
public function titleQuery() {
if (!$this->argument) {
return array(
config('user.settings')
->get('anonymous'),
);
}
$titles = array();
$users = user_load_multiple($this->value);
foreach ($users as $account) {
$titles[] = check_plain($account
->label());
}
return $titles;
}