public static function EntityHelper::view in Helper 7
File
- lib/
EntityHelper.php, line 436
Class
Code
public static function view($entity_type, $entity, $view_mode = 'default', $langcode = NULL, $page = NULL) {
if ($output = static::viewMultiple($entity_type, array(
$entity,
), $view_mode, $langcode, $page)) {
return reset($output);
}
else {
return array();
}
}