public function OAuth2ServerScopeMetadataController::entityPropertyInfo in OAuth2 Server 7
Overrides EntityDefaultMetadataController::entityPropertyInfo
File
- ./
oauth2_server.info.inc, line 10 - Provides Entity metadata integration.
Class
- OAuth2ServerScopeMetadataController
- @file Provides Entity metadata integration.
Code
public function entityPropertyInfo() {
$info = parent::entityPropertyInfo();
$properties =& $info[$this->type]['properties'];
$properties['server'] = array(
'label' => t("Server"),
'type' => 'oauth2_server',
'description' => t("The parent server."),
'setter callback' => 'entity_property_verbatim_set',
'required' => TRUE,
'schema field' => 'server',
);
// Make the description translatable.
$properties['description']['translatable'] = TRUE;
$properties['description']['i18n string'] = TRUE;
return $info;
}