You are here

public function EntityTranslationFieldCollectionItemHandler::__construct in Field collection 7

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.field_collection_item.inc, line 18
Field Collection Item translation handler for the Entity Translation module.

Class

EntityTranslationFieldCollectionItemHandler
Field Collection Item translation handler.

Code

public function __construct($entity_type, $entity_info, $entity) {
  parent::__construct('field_collection_item', $entity_info, $entity);

  // Initialize the path scheme for the current bundle, unless we are dealing
  // with the "default" bundle.
  if ($this->bundle != $entity_info['translation']['entity_translation']['default_scheme']) {
    $this
      ->setPathScheme($this->bundle);
  }
}