You are here

class NodeGalleryRelationshipMetadataController in Node Gallery 7

Metadata Controller for Node Gallery Relationships

Hierarchy

Expanded class hierarchy of NodeGalleryRelationshipMetadataController

1 string reference to 'NodeGalleryRelationshipMetadataController'
node_gallery_api_entity_info in ./node_gallery_api.module
Implements hook_entity_info().

File

./node_gallery_api.inc, line 1072
Node Gallery API function

View source
class NodeGalleryRelationshipMetadataController extends EntityDefaultMetadataController {
  public function entityPropertyInfo() {
    $info = parent::entityPropertyInfo();
    $properties =& $info[$this->type]['properties'];
    $properties['nid']['type'] = 'node';
    $properties['nid']['label'] = t('Gallery Item');
    $properties['nid']['description'] = t('The Gallery Item associated with the Node Gallery relationship');
    $properties['ngid']['type'] = 'node';
    $properties['ngid']['label'] = t('Gallery');
    $properties['ngid']['description'] = t('The Gallery associated with the Node Gallery relationship');
    $properties['relationship_type']['type'] = 'node_gallery_relationship_type';
    $properties['relationship_type']['label'] = t('Relationship Type');
    $properties['relationship_type']['description'] = t('The Relationship Type of the Node Gallery relationship.');
    $properties['weight']['label'] = t('Item Weight (Sort Order)');
    $properties['weight']['description'] = t('The Item Weight (sort order) of the Node Gallery relationship.');
    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
NodeGalleryRelationshipMetadataController::entityPropertyInfo public function Overrides EntityDefaultMetadataController::entityPropertyInfo