You are here

public function EntityDefaultFeaturesController::api in Entity API 7

Defines the result for hook_features_api().

File

./entity.features.inc, line 49
Provides Features integration for entity types using the CRUD API.

Class

EntityDefaultFeaturesController
Default controller handling features integration.

Code

public function api() {
  return array(
    // The entity type has to be the features component name.
    $this->type => array(
      'name' => $this->info['label'],
      'feature_source' => TRUE,
      'default_hook' => isset($this->info['export']['default hook']) ? $this->info['export']['default hook'] : 'default_' . $this->type,
      // Use the provided component callbacks making use of the controller.
      'base' => 'entity',
      'file' => drupal_get_path('module', 'entity') . '/entity.features.inc',
    ),
  );
}