You are here

public function Entity::view in Entity API 7

Generate an array for rendering the entity.

Overrides EntityInterface::view

See also

entity_view()

File

includes/entity.inc, line 357
Provides a base class for entities.

Class

Entity
A common class for entities.

Code

public function view($view_mode = 'full', $langcode = NULL, $page = NULL) {
  return entity_get_controller($this->entityType)
    ->view(array(
    $this,
  ), $view_mode, $langcode, $page);
}