node_view(NodeInterface $node,$view_mode= 'full',$langcode= NULL)
Generates an array for rendering the given node.
\Drupal\node\NodeInterface $node: A node entity.
$view_mode: (optional) View mode, e.g., 'full', 'teaser', etc. Defaults to 'full.'
$langcode: (optional) A language code to use for rendering. Defaults to NULL which is the global content language of the current request.
array An array as expected by drupal_render().
function node_view(NodeInterface $node, $view_mode = 'full', $langcode = NULL) { return entity_view($node, $view_mode, $langcode); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!node!node.module/function/node_view/8.1.x