class OAuth2ScopeI18nStringController in OAuth2 Server 7
The i18n controller for oauth2_server_scope entities.
Hierarchy
Expanded class hierarchy of OAuth2ScopeI18nStringController
1 string reference to 'OAuth2ScopeI18nStringController'
- oauth2_server_entity_info in ./
oauth2_server.module - Implements hook_entity_info().
File
- includes/
oauth2_server.scope_i18n.inc, line 6
View source
class OAuth2ScopeI18nStringController extends EntityDefaultI18nStringController {
/**
* Overrides EntityDefaultI18nStringController::hook_object_info().
*
* Changes the paths used to match the ones used for scopes.
* (Scopes have no "manage/" in the url because of Menu API limitations)
*/
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;
}
}