summaryrefslogtreecommitdiffstats
path: root/core/modules/rest/src/Plugin/ResourceBase.php
diff options
context:
space:
mode:
authorAlex Pott2014-12-04 11:38:10 (GMT)
committerAlex Pott2014-12-04 11:39:51 (GMT)
commitcf00c8c140a4a5a0f4521d78e8ac30d666a72182 (patch)
tree3c3b6b5732805e739976f5a376dbd1cdf7430ea7 /core/modules/rest/src/Plugin/ResourceBase.php
parent4ecc4ead39c67a3ea63bec6ce3510610cc4fde33 (diff)
Issue #2349805 by balagan, clemens.tolboom, Cyberwolf: Rest classes should use StringTranslationTrait instead of t() function when possible
Diffstat (limited to 'core/modules/rest/src/Plugin/ResourceBase.php')
-rw-r--r--core/modules/rest/src/Plugin/ResourceBase.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/rest/src/Plugin/ResourceBase.php b/core/modules/rest/src/Plugin/ResourceBase.php
index 0cf3281..ef16078 100644
--- a/core/modules/rest/src/Plugin/ResourceBase.php
+++ b/core/modules/rest/src/Plugin/ResourceBase.php
@@ -87,7 +87,7 @@ abstract class ResourceBase extends PluginBase implements ContainerFactoryPlugin
foreach ($this->availableMethods() as $method) {
$lowered_method = strtolower($method);
$permissions["restful $lowered_method $this->pluginId"] = array(
- 'title' => t('Access @method on %label resource', array('@method' => $method, '%label' => $definition['label'])),
+ 'title' => $this->t('Access @method on %label resource', array('@method' => $method, '%label' => $definition['label'])),
);
}
return $permissions;