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 content, to select a page display variant.

Namespace

Drupal\Core\Render

Code

public function __construct($plugin_id, RouteMatchInterface $route_match) {
  $this->pluginId = $plugin_id;
  $this->routeMatch = $route_match;
}
doc_Drupal
2016-10-29 09:32:56
Comments
Leave a Comment

Please login to continue.