class OAuth2ServerScopeMetadataController in OAuth2 Server 7
@file Provides Entity metadata integration.
Hierarchy
Expanded class hierarchy of OAuth2ServerScopeMetadataController
1 string reference to 'OAuth2ServerScopeMetadataController'
- oauth2_server_entity_info in ./
oauth2_server.module - Implements hook_entity_info().
File
- ./
oauth2_server.info.inc, line 8 - Provides Entity metadata integration.
View source
class OAuth2ServerScopeMetadataController extends EntityDefaultMetadataController {
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;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityDefaultMetadataController:: |
protected | property | ||
EntityDefaultMetadataController:: |
public static | function | A options list callback returning all bundles for an entity type. | |
EntityDefaultMetadataController:: |
protected | function | Return a set of properties for an entity based on the schema definition | |
EntityDefaultMetadataController:: |
public | function | ||
OAuth2ServerScopeMetadataController:: |
public | function |
Overrides EntityDefaultMetadataController:: |