Skip to content
Snippets Groups Projects
Commit 5b5b4fe6 authored by Shanu Chouhan's avatar Shanu Chouhan Committed by Antonín Slejška
Browse files

Issue #3360086 by Shanu Chouhan: t() calls should be avoided in classes

parent de021f4d
No related branches found
No related tags found
1 merge request!1Issue #3360452: Move the configuration entity to a separate module.
......@@ -51,7 +51,7 @@ class TskAllController extends ControllerBase {
*/
public function kill(TskEntity $tsk_entity) {
$this->tskService->kill($tsk_entity->collection, $tsk_entity->private, $tsk_entity->kill_all, $tsk_entity->key);
$this->messenger()->addStatus(t('The temporary storage has been deleted.'));
$this->messenger()->addStatus($this->t('The temporary storage has been deleted.'));
return $this->redirect('entity.tsk_entity');
}
......@@ -60,7 +60,7 @@ class TskAllController extends ControllerBase {
*/
public function killAll() {
$this->tskService->killAll();
$this->messenger()->addStatus(t('The temporary storages have been deleted.'));
$this->messenger()->addStatus($this->t('The temporary storages have been deleted.'));
return $this->redirect('entity.tsk_entity');
}
......
......@@ -97,7 +97,7 @@ class TskEntityListBuilder extends ConfigEntityListBuilder {
$build['kill_all_link'] = [
'#type' => 'link',
'#url' => $url,
'#title' => t('Kill all'),
'#title' => $this->t('Kill all'),
];
return $build;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment