You are here

public function TMGMTJobItem::buildContent in Translation Management Tool 7

Builds a structured array representing the entity's content.

Overrides Entity::buildContent

See also

entity_build_content()

File

entity/tmgmt.entity.job_item.inc, line 168

Class

TMGMTJobItem
Entity class for the tmgmt_job entity.

Code

public function buildContent($view_mode = 'full', $langcode = NULL) {
  $content = array();
  if (module_exists('tmgmt_ui')) {
    $content = tmgmt_ui_job_item_review($this);
  }
  return entity_get_controller($this->entityType)
    ->buildContent($this, $view_mode, $langcode, $content);
}