public function Bean::view in Bean (for Drupal 7) 7
Generate an array for rendering the entity.
Overrides Entity::view
See also
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);
}