public function EntityTranslationECKHandler::__construct in Entity Construction Kit (ECK) 7.2
Initializes an instance of the translation handler.
Parameters
$entity_type: The type of the entity being wrapped.
$entity_info: The entity information for the entity being wrapped.
$entity: The entity being wrapped.
Overrides EntityTranslationDefaultHandler::__construct
File
- includes/
translation.handler.eck.inc, line 17 - ECK translation handler for the entity translation module.
Class
- EntityTranslationECKHandler
- ECK translation handler.
Code
public function __construct($entity_type, $entity_info, $entity) {
parent::__construct($entity_type, $entity_info, $entity);
// Since we are using per-bundle paths then use the bundle's path scheme.
$this
->setPathScheme($entity->type);
}