function Page::setPageRenderArray
Same name in other branches
- 9 core/modules/views/src/Plugin/views/display/Page.php \Drupal\views\Plugin\views\display\Page::setPageRenderArray()
- 8.9.x core/modules/views/src/Plugin/views/display/Page.php \Drupal\views\Plugin\views\display\Page::setPageRenderArray()
- 11.x core/modules/views/src/Plugin/views/display/Page.php \Drupal\views\Plugin\views\display\Page::setPageRenderArray()
Sets the current page views render array.
Parameters
array $element: (optional) A render array. If not specified the previous element is returned.
Return value
array The page render array.
1 call to Page::setPageRenderArray()
- ViewPageController::handle in core/
modules/ views/ src/ Routing/ ViewPageController.php - Handler a response for a given view and display.
File
-
core/
modules/ views/ src/ Plugin/ views/ display/ Page.php, line 127
Class
- Page
- The plugin that handles a full page.
Namespace
Drupal\views\Plugin\views\displayCode
public static function &setPageRenderArray(?array &$element = NULL) {
if (isset($element)) {
static::$pageRenderArray =& $element;
}
return static::$pageRenderArray;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.