You are here

class CivicrmEntityMetadataController in CiviCRM Entity 7

Same name and namespace in other branches
  1. 7.2 civicrm_entity_metadata_controller.inc \CivicrmEntityMetadataController

Extend the default CiviCRM membership metadata properties.

Hierarchy

Expanded class hierarchy of CivicrmEntityMetadataController

1 string reference to 'CivicrmEntityMetadataController'
civicrm_entity_entity_info in ./civicrm_entity.module
Here we declare selected CiviCRM entities to Drupal.

File

./civicrm_entity_metadata_controller.inc, line 10
Provides Entity metadata integration.

View source
class CivicrmEntityMetadataController extends EntityDefaultMetadataController {

  /**
   * Return a set of properties for an entity based on the schema definition.
   */
  protected function convertSchema() {
    if (empty($this->info['base table'])) {
      return array();
    }
    return civicrm_entity_metadata_convert_schema($this->info['base table']);
  }

}

Members

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