pager.html.twig

Default theme implementation to display a pager. Available variables: items: List of pager items. The list is keyed by the following elements: first: Item for the first page; not present on the first page of results. previous: Item for the previous page; not present on the first page of results. next: Item for the next page; not present on the last page of results. last: Item for the last page; not present on the last page of results. pages: List of pages, keyed by page number. Sub-sub el

Pager

Provides a render element for a pager. The pager must be initialized with a call to pager_default_initialize() in order to render properly. When used with database queries, this is performed for you when you extend a select query with \Drupal\Core\Database\Query\PagerSelectExtender. Properties: #element: (optional, int) The pager ID, to distinguish between multiple pagers on the same page (defaults to 0). #parameters: (optional) An associative array of query string parameters to append to the

PageDisplayVariantSelectionEvent::__construct

public PageDisplayVariantSelectionEvent::__construct($plugin_id, RouteMatchInterface $route_match) Constructs the page display variant plugin selection event. Parameters string $plugin_id: The ID of the page display variant plugin to use by default. \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match, for context. File core/lib/Drupal/Core/Render/PageDisplayVariantSelectionEvent.php, line 62 Class PageDisplayVariantSelectionEvent Event fired when rendering main

PageDisplayVariantSelectionEvent::setContexts

public PageDisplayVariantSelectionEvent::setContexts(array $contexts) Sets the contexts to be passed to the page display variant. Parameters \Drupal\Component\Plugin\Context\ContextInterface[] $contexts: An array of contexts, keyed by context name. Return value $this File core/lib/Drupal/Core/Render/PageDisplayVariantSelectionEvent.php, line 139 Class PageDisplayVariantSelectionEvent Event fired when rendering main content, to select a page display variant. Namespace Drupal\Core\Rende

PageDisplayVariantSelectionEvent::getRouteMatch

public PageDisplayVariantSelectionEvent::getRouteMatch() Gets the current route match. Return value \Drupal\Core\Routing\RouteMatchInterface The current route match, for context. File core/lib/Drupal/Core/Render/PageDisplayVariantSelectionEvent.php, line 117 Class PageDisplayVariantSelectionEvent Event fired when rendering main content, to select a page display variant. Namespace Drupal\Core\Render Code public function getRouteMatch() { return $this->routeMatch; }

PageDisplayVariantSelectionEvent::getContexts

public PageDisplayVariantSelectionEvent::getContexts() Gets the contexts that were set during event dispatch. Return value \Drupal\Component\Plugin\Context\ContextInterface[] An array of set contexts, keyed by context name. File core/lib/Drupal/Core/Render/PageDisplayVariantSelectionEvent.php, line 127 Class PageDisplayVariantSelectionEvent Event fired when rendering main content, to select a page display variant. Namespace Drupal\Core\Render Code public function getContexts() { ret

PageDisplayVariantSelectionEvent::$routeMatch

The current route match. Type: \Drupal\Core\Routing\RouteMatchInterface File core/lib/Drupal/Core/Render/PageDisplayVariantSelectionEvent.php, line 45 Class PageDisplayVariantSelectionEvent Event fired when rendering main content, to select a page display variant. Namespace Drupal\Core\Render Code protected $routeMatch;

PageDisplayVariantSelectionEvent::$contexts

An array of collected contexts to pass to the page display variant. Type: \Drupal\Component\Plugin\Context\ContextInterface[] File core/lib/Drupal/Core/Render/PageDisplayVariantSelectionEvent.php, line 52 Class PageDisplayVariantSelectionEvent Event fired when rendering main content, to select a page display variant. Namespace Drupal\Core\Render Code protected $contexts = [];

PageDisplayVariantSelectionEvent

Event fired when rendering main content, to select a page display variant. Subscribers of this event can call the following setters to pass additional information along to the selected variant: self::setPluginConfiguration() self::setContexts() self::addCacheableDependency() Hierarchy class \Symfony\Component\EventDispatcher\Eventclass \Drupal\Core\Render\PageDisplayVariantSelectionEvent implements RefinableCacheableDependencyInterface uses RefinableCacheableDependencyTrait See also \Dru

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 AnnotationInterfaceclass \Drupal\Core\Display\Annotation\DisplayVariantclass \Drupal\Core\Display\Annotation\PageDisplayVariant See also \Drupal\Core\Displa