You are here

public function PageDisplayVariantSelectionEvent::setPluginId in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Render/PageDisplayVariantSelectionEvent.php \Drupal\Core\Render\PageDisplayVariantSelectionEvent::setPluginId()

The selected page display variant plugin ID.

Parameters

string $plugin_id: The ID of the page display variant plugin to use.

Return value

$this

File

core/lib/Drupal/Core/Render/PageDisplayVariantSelectionEvent.php, line 80
Contains \Drupal\Core\Render\PageDisplayVariantSelectionEvent.

Class

PageDisplayVariantSelectionEvent
Event fired when rendering main content, to select a page display variant.

Namespace

Drupal\Core\Render

Code

public function setPluginId($plugin_id) {
  $this->pluginId = $plugin_id;
  return $this;
}