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

Breadcrumb

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

class PageDisplayVariant

Same name in this branch
  1. 11.1.x core/lib/Drupal/Core/Display/Attribute/PageDisplayVariant.php \Drupal\Core\Display\Attribute\PageDisplayVariant

Defines a page display variant annotation object.

Page display variants are a specific type of display variant, intended to render entire pages. They must render the crucial parts of a page, which are:

  • the title
  • the main content
  • any messages (#type => status_messages)

Hierarchy

  • class \Drupal\Component\Annotation\Plugin implements \Drupal\Component\Annotation\AnnotationInterface
    • class \Drupal\Core\Display\Annotation\DisplayVariant extends \Drupal\Component\Annotation\Plugin
      • class \Drupal\Core\Display\Annotation\PageDisplayVariant extends \Drupal\Core\Display\Annotation\DisplayVariant

Expanded class hierarchy of PageDisplayVariant

See also

\Drupal\Core\Display\VariantInterface

\Drupal\Core\Display\PageVariantInterface

\Drupal\Core\Display\VariantBase

\Drupal\Core\Display\VariantManager

Plugin API

Related topics

Annotations
Annotations for class discovery and metadata description.

File

core/lib/Drupal/Core/Display/Annotation/PageDisplayVariant.php, line 22

Namespace

Drupal\Core\Display\Annotation
View source
class PageDisplayVariant extends DisplayVariant {

}
RSS feed
Powered by Drupal