Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Page.php

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\display

Code

public static function &setPageRenderArray(?array &$element = NULL) {
    if (isset($element)) {
        static::$pageRenderArray =& $element;
    }
    return static::$pageRenderArray;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal