oauth2_server.scope_i18n.inc in OAuth2 Server 7
File
includes/oauth2_server.scope_i18n.inc
View source
<?php
class OAuth2ScopeI18nStringController extends EntityDefaultI18nStringController {
public function hook_object_info() {
$info = parent::hook_object_info();
$wildcard = $this
->menuWildcard();
$path = $this
->menuBasePath() . '/' . $wildcard;
$info['oauth2_server_scope']['title'] = 'Scope';
$info['oauth2_server_scope']['placeholders']['%oauth2_server'] = 'server';
$info['oauth2_server_scope']['edit path'] = $path;
$info['oauth2_server_scope']['translate tab'] = $path . '/translate';
$info['oauth2_server_scope']['string translation']['translate path'] = $path . '/translate/%i18n_language';
return $info;
}
}