SearchDashboard: Use t() instead of the view helper
Since it's library code we do not need to use the module-aware translation helper.
This commit is contained in:
parent
6ab61ba8e0
commit
8cc1970a9f
|
@ -72,7 +72,7 @@ class SearchDashboard extends Dashboard
|
||||||
$pane->createDashlet(
|
$pane->createDashlet(
|
||||||
$searchUrl->title . ': ' . $searchString,
|
$searchUrl->title . ': ' . $searchString,
|
||||||
Url::fromPath($searchUrl->url, array('q' => $searchString))
|
Url::fromPath($searchUrl->url, array('q' => $searchString))
|
||||||
)->setProgressLabel($this->view()->translate('Searching'));
|
)->setProgressLabel(t('Searching'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
|
Loading…
Reference in New Issue