function 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;
}