You are here

protected function CaseTrackerCaseController::themeEntity in Case Tracker 7.2

Define how an entity will be themed and return the build array with it.

Parameters

CaseTrackerCase $entity:

Return value

array

1 call to CaseTrackerCaseController::themeEntity()
CaseTrackerCaseController::view in includes/controller/CaseTrackerCaseController.inc
Implements EntityAPIControllerInterface.

File

includes/controller/CaseTrackerCaseController.inc, line 91

Class

CaseTrackerCaseController
The Controller for CaseTrackerCase entities

Code

protected function themeEntity($entity) {
  $build = array();
  $build['view_mode_full'] = array(
    '#theme' => 'casetracker_case_full_view_mode',
    '#CaseTrackerCase' => $entity,
  );
  return $build;
}