$title=$this->database->query('SELECT name FROM {users_field_data} WHERE uid = :uid AND default_langcode = 1',array(':uid'=>$this->argument))->fetchField();
}
if(empty($title)){
returnt('No user');
return$this->t('No user');
}
returnString::checkPlain($title);
...
...
@@ -108,7 +108,7 @@ public function query($group_by = FALSE) {
'#description'=>t('Fields to be included as contextual links.'),
'#title'=>$this->t('Fields'),
'#description'=>$this->t('Fields to be included as contextual links.'),
'#options'=>$field_options,
'#default_value'=>$this->options['fields'],
);
$form['destination']=array(
'#type'=>'select',
'#title'=>t('Include destination'),
'#description'=>t('Include a "destination" parameter in the link to return the user to the original view upon completing the contextual action.'),
'#title'=>$this->t('Include destination'),
'#description'=>$this->t('Include a "destination" parameter in the link to return the user to the original view upon completing the contextual action.'),