public function Entity::buildContent in Entity API 7
Builds a structured array representing the entity's content.
Overrides EntityInterface::buildContent
See also
1 method overrides Entity::buildContent()
- EntityClass::buildContent in tests/
entity_test.module - Override buildContent() to add the username to the output.
File
- includes/
entity.inc, line 364 - Provides a base class for entities.
Class
- Entity
- A common class for entities.
Code
public function buildContent($view_mode = 'full', $langcode = NULL) {
return entity_get_controller($this->entityType)
->buildContent($this, $view_mode, $langcode);
}