You are here

public function EntityDefaultExtraFieldsController::__construct in Entity API 7

Constructor.

File

./entity.info.inc, line 226
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

EntityDefaultExtraFieldsController
Default controller for generating extra fields based on property metadata.

Code

public function __construct($type) {
  $this->entityType = $type;
  $this->entityInfo = entity_get_info($type);
  $this->propertyInfo = entity_get_property_info($type);
}