You are here

public function EFQViewsTestEntityClass::buildContent in EntityFieldQuery Views Backend 7

Override buildContent() to add the username to the output.

Overrides Entity::buildContent

File

tests/efq_views_test.module, line 71
Provides info about the efq_views test entity.

Class

EFQViewsTestEntityClass

Code

public function buildContent($view_mode = 'full', $langcode = NULL) {
  $content['user'] = array(
    '#markup' => "User: " . format_username(user_load($this->uid)),
  );
  return entity_get_controller($this->entityType)
    ->buildContent($this, $view_mode, $langcode, $content);
}