You are here

public function EntityDrupalWrapper::view in Entity API 7

Returns the entity prepared for rendering.

See also

entity_view()

File

includes/entity.wrapper.inc, line 754
Provides wrappers allowing easy usage of the entity metadata.

Class

EntityDrupalWrapper
Provides a wrapper for entities registrered in hook_entity_info().

Code

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