You are here

class TMGMTLocalTaskItemMetadataController in Translation Management Tool 7

Metadata controller for the local task entity.

Hierarchy

Expanded class hierarchy of TMGMTLocalTaskItemMetadataController

1 string reference to 'TMGMTLocalTaskItemMetadataController'
tmgmt_local_entity_info in translators/tmgmt_local/tmgmt_local.module
Implements hook_entity_info().

File

translators/tmgmt_local/includes/tmgmt_local.info.inc, line 70
Contains the metadata controller classes for the local task translatio entity.

View source
class TMGMTLocalTaskItemMetadataController extends EntityDefaultMetadataController {

  /**
   * {@inheritdoc}
   */
  public function entityPropertyInfo() {
    $info = parent::entityPropertyInfo();
    $properties =& $info[$this->type]['properties'];

    // Add the options list for the defined status constants.
    $properties['status']['options list'] = 'tmgmt_local_task_item_statuses';

    // Link the job property to the corresponding job entity.
    $properties['tjiid']['type'] = 'tmgmt_job_item';

    // Link the author property to the corresponding user entity.
    $properties['tltid']['type'] = 'tmgmt_local_task';
    return $info;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
EntityDefaultMetadataController::$type protected property
EntityDefaultMetadataController::bundleOptionsList public static function A options list callback returning all bundles for an entity type.
EntityDefaultMetadataController::convertSchema protected function Return a set of properties for an entity based on the schema definition
EntityDefaultMetadataController::__construct public function
TMGMTLocalTaskItemMetadataController::entityPropertyInfo public function Overrides EntityDefaultMetadataController::entityPropertyInfo