You are here

public function DataEntityController::__construct in Data 7

Overridden.

Overrides EntityAPIController::__construct

See also

EntityAPIController#__construct()

File

data_entity/data_entity.entity.inc, line 14

Class

DataEntityController
Entity controller class for Data entities.

Code

public function __construct($entityType) {
  parent::__construct($entityType);

  // Set our data table. Our entity type is 'data_TABLENAME'.
  $this->dataTable = substr($entityType, 5);
}