You are here

public function EntityDrupalWrapper::__construct in Entity API 7

Construct a new EntityDrupalWrapper object.

Parameters

$type: The type of the passed data.

$data: Optional. The entity to wrap or its identifier.

$info: Optional. Used internally to pass info about properties down the tree.

Overrides EntityStructureWrapper::__construct

File

includes/entity.wrapper.inc, line 609
Provides wrappers allowing easy usage of the entity metadata.

Class

EntityDrupalWrapper
Provides a wrapper for entities registrered in hook_entity_info().

Code

public function __construct($type, $data = NULL, $info = array()) {
  parent::__construct($type, $data, $info);
  $this
    ->setUp();
}