You are here

translation.handler.eck.inc in Entity Construction Kit (ECK) 7.2

ECK translation handler for the entity translation module.

File

includes/translation.handler.eck.inc
View source
<?php

/**
 * @file
 * ECK translation handler for the entity translation module.
 */

/**
 * ECK translation handler.
 *
 * Overrides default behaviours for ECK properties.
 */
class EntityTranslationECKHandler extends EntityTranslationDefaultHandler {

  /**
   * {@inheritdoc}
   */
  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);
  }

}

Classes

Namesort descending Description
EntityTranslationECKHandler ECK translation handler.