function PageDisplayVariantSelectionEvent::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Render/PageDisplayVariantSelectionEvent.php \Drupal\Core\Render\PageDisplayVariantSelectionEvent::__construct()
- 10 core/lib/Drupal/Core/Render/PageDisplayVariantSelectionEvent.php \Drupal\Core\Render\PageDisplayVariantSelectionEvent::__construct()
- 9 core/lib/Drupal/Core/Render/PageDisplayVariantSelectionEvent.php \Drupal\Core\Render\PageDisplayVariantSelectionEvent::__construct()
- 8.9.x core/lib/Drupal/Core/Render/PageDisplayVariantSelectionEvent.php \Drupal\Core\Render\PageDisplayVariantSelectionEvent::__construct()
Constructs the page display variant plugin selection event.
Parameters
string $pluginId: The ID of the page display variant plugin to use by default.
\Drupal\Core\Routing\RouteMatchInterface $routeMatch: The current route match, for context.
File
-
core/
lib/ Drupal/ Core/ Render/ PageDisplayVariantSelectionEvent.php, line 48
Class
- PageDisplayVariantSelectionEvent
- Event fired when rendering main content, to select a page display variant.
Namespace
Drupal\Core\RenderCode
public function __construct(protected $pluginId, protected RouteMatchInterface $routeMatch) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.