public function ApdqcPrefetchDrupalDefaultEntityController::__construct in Asynchronous Prefetch Database Query Cache 7
Get the entity type and create the original controller object.
Parameters
string $entity_type: Entity type.
File
- ./
apdqc.module, line 564 - Asynchronous Prefetch Database Query Cache module.
Class
- ApdqcPrefetchDrupalDefaultEntityController
- Passthrough DrupalDefaultEntityController class for prefetching cache ids.
Code
public function __construct($entity_type) {
$entity_info = entity_get_info($entity_type);
$classname = $entity_info['original controller class'];
$this->originalEntityInfo = $entity_info;
$this->originalEntityType = $entity_type;
$this->originalBaseClass = new $classname($entity_type);
}