You are here

function node_view_multiple in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/node/node.module \node_view_multiple()

Constructs a drupal_render() style array from an array of loaded nodes.

Parameters

$nodes: An array of nodes as returned by Node::loadMultiple().

$view_mode: (optional) View mode, e.g., 'full', 'teaser', etc. Defaults to 'teaser.'

$langcode: (optional) A language code to use for rendering. Defaults to the global content language of the current request.

Return value

array An array in the format expected by drupal_render().

File

core/modules/node/node.module, line 801
The core module that allows content to be submitted to the site.

Code

function node_view_multiple($nodes, $view_mode = 'teaser', $langcode = NULL) {
  return entity_view_multiple($nodes, $view_mode, $langcode);
}