class Page

Same name in this branch
  1. main core/modules/views/src/Plugin/views/display/Page.php \Drupal\views\Plugin\views\display\Page
Same name and namespace in other branches
  1. 11.x core/modules/views/src/Plugin/views/display/Page.php \Drupal\views\Plugin\views\display\Page
  2. 11.x core/lib/Drupal/Core/Render/Element/Page.php \Drupal\Core\Render\Element\Page
  3. 10 core/modules/views/src/Plugin/views/display/Page.php \Drupal\views\Plugin\views\display\Page
  4. 10 core/lib/Drupal/Core/Render/Element/Page.php \Drupal\Core\Render\Element\Page
  5. 9 core/modules/views/src/Plugin/views/display/Page.php \Drupal\views\Plugin\views\display\Page
  6. 9 core/lib/Drupal/Core/Render/Element/Page.php \Drupal\Core\Render\Element\Page
  7. 8.9.x core/modules/views/src/Plugin/views/display/Page.php \Drupal\views\Plugin\views\display\Page
  8. 8.9.x core/lib/Drupal/Core/Render/Element/Page.php \Drupal\Core\Render\Element\Page

Provides a render element for the content of an HTML page.

This represents the "main part" of the HTML page's body; see html.html.twig.

Attributes

#[RenderElement('page')]

Hierarchy

Expanded class hierarchy of Page

847 string references to 'Page'
32650de8-9edd-48dc-80b8-8bda180ebbac.yml in core/tests/fixtures/default_content/node/32650de8-9edd-48dc-80b8-8bda180ebbac.yml
core/tests/fixtures/default_content/node/32650de8-9edd-48dc-80b8-8bda180ebbac.yml
48475954-e878-439c-9d3d-226724a44269.yml in core/tests/fixtures/default_content/node/48475954-e878-439c-9d3d-226724a44269.yml
core/tests/fixtures/default_content/node/48475954-e878-439c-9d3d-226724a44269.yml
7f1dd75a-0be2-4d3b-be5d-9d1a868b9267.yml in core/tests/fixtures/default_content/node/7f1dd75a-0be2-4d3b-be5d-9d1a868b9267.yml
core/tests/fixtures/default_content/node/7f1dd75a-0be2-4d3b-be5d-9d1a868b9267.yml
AccessDeniedTest::testAccessDeniedCustomPageWithAccessDenied in core/modules/system/tests/src/Functional/System/AccessDeniedTest.php
Tests that an inaccessible custom 403 page falls back to the default.
ActiveLinkResponseFilter::setLinkActiveClass in core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php
Sets the "is-active" class and aria-current attribute on relevant links.

... See full list

6 #type uses of Page
BareHtmlPageRenderer::renderBarePage in core/lib/Drupal/Core/Render/BareHtmlPageRenderer.php
BatchController::batchPage in core/modules/system/src/Controller/BatchController.php
Returns a system batch page.
BlockController::demo in core/modules/block/src/Controller/BlockController.php
Returns a block theme demo page.
ElementInfoManagerTest::providerTestGetInfoElementPlugin in core/tests/Drupal/Tests/Core/Render/ElementInfoManagerTest.php
Provides tests data for testGetInfoElementPlugin().
ErrorTestController::triggerRendererException in core/modules/system/tests/modules/error_test/src/Controller/ErrorTestController.php
Trigger an exception during rendering.

... See full list

File

core/lib/Drupal/Core/Render/Element/Page.php, line 12

Namespace

Drupal\Core\Render\Element
View source
class Page extends RenderElementBase {
  
  /**
   * {@inheritdoc}
   */
  public function getInfo() {
    return [
      '#theme' => 'page',
      '#title' => '',
    ];
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.