public function OAuth2ScopeI18nStringController::hook_object_info in OAuth2 Server 7
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)
Overrides EntityDefaultI18nStringController::hook_object_info
File
- includes/
oauth2_server.scope_i18n.inc, line 14
Class
- OAuth2ScopeI18nStringController
- The i18n controller for oauth2_server_scope entities.
Code
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;
}