You are here

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

Namesort descending Modifiers Type Description Overrides
EntityDefaultMetadataController::$type protected property
EntityDefaultMetadataController::bundleOptionsList public static function A options list callback returning all bundles for an entity type.
EntityDefaultMetadataController::convertSchema protected function Return a set of properties for an entity based on the schema definition
EntityDefaultMetadataController::__construct public function
OAuth2ServerScopeMetadataController::entityPropertyInfo public function Overrides EntityDefaultMetadataController::entityPropertyInfo