You are here

translation.handler.boxes.inc in Boxes 7.2

Box translation handler for the translation module.

File

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

/**
 * @file
 * Box translation handler for the translation module.
 */

/**
 * Box translation handler.
 *
 * Overrides default behaviours for Box properties.
 */
class EntityTranslationBoxHandler extends EntityTranslationDefaultHandler {
  public function __construct($entity_type, $entity_info, $entity, $entity_id) {
    parent::__construct('box', $entity_info, $entity, $entity_id);
  }
  public function getAccess($op) {
    return boxes_access($op, $this->entity);
  }
  protected function getEntityId() {
    return $this->entity->delta;
  }

}

Classes

Namesort descending Description
EntityTranslationBoxHandler Box translation handler.