public function EntityDefaultMetadataController::__construct in Entity API 7
File
- ./
entity.info.inc, line 63 - Provides basic entity property info for entities provided via the CRUD API, as well as property info for all entity types defined by core. For that the respective modules/MODULE.info.inc files are included.
Class
- EntityDefaultMetadataController
- Default controller for generating some basic metadata for CRUD entity types.
Code
public function __construct($type) {
$this->type = $type;
$this->info = entity_get_info($type);
}