You are here

public function Bean::view in Bean (for Drupal 7) 7

Generate an array for rendering the entity.

Overrides Entity::view

See also

entity_view()

File

includes/bean.core.inc, line 349
Bean classes and plugin interface

Class

Bean
The Bean entity class

Code

public function view($view_mode = 'default', $langcode = NULL, $page = NULL) {
  $content = parent::view($view_mode, $langcode);
  if (empty($this->plugin)) {
    return $content;
  }
  return $this->plugin
    ->view($this, $content, $view_mode, $langcode);
}