You are here

public function EntityDefaultViewsController::__construct in Entity API 7

File

views/entity.views.inc, line 359
Provide views data for modules making use of the entity CRUD API.

Class

EntityDefaultViewsController
Default controller for generating basic views integration.

Code

public function __construct($type) {
  $this->type = $type;
  $this->info = entity_get_info($type);
}