$this->messenger()->addWarning($this->t('The remote endpoint service address have not been set. Please go and provide the credentials and the endpoint address on the <a href="@url">config page</a>.',['@url'=>base_path().'examples/rest-client-settings']));
}
$build=[];
$nodes=$this->restExampleClientCalls->index();
$build['intro']=[
$build['intro']=[
'#markup'=>$this->t('This is a list of nodes, of type <em>Rest Example Test</em>, on the remote server. From here you can create new node, edit and delete existing ones.'),
'#markup'=>$this->t('This is a list of nodes, of type <em>Rest Example Test</em>, on the remote server. From here you can create new node, edit and delete existing ones.'),
];
];
...
@@ -71,17 +86,27 @@ public function indexAction() {
...
@@ -71,17 +86,27 @@ public function indexAction() {
$this->t('Edit'),
$this->t('Edit'),
$this->t('Delete'),
$this->t('Delete'),
],
],
'#empty'=>t('There are no items on the remote system yet'),
'#empty'=>$this->t('There are no items on the remote system yet'),
$this->t('The remote endpoint service address has not been set. Please go and provide the credentials and the endpoint address on the <a href="@url">config page</a>.',['@url'=>base_path().'examples/rest-client-settings'])