public function EntityDefaultI18nStringController::__construct in Entity API 7
File
- ./
entity.i18n.inc, line 107 - Internationalization (i18n) integration.
Class
- EntityDefaultI18nStringController
- Default controller handling i18n integration.
Code
public function __construct($type) {
$this->entityType = $type;
$this->entityInfo = entity_get_info($type);
// By default we go with the module name as textgroup.
$this->textgroup = $this->entityInfo['module'];
}