function PageDisplayVariantSelectionEvent::setPluginId

Same name in other branches
  1. 9 core/lib/Drupal/Core/Render/PageDisplayVariantSelectionEvent.php \Drupal\Core\Render\PageDisplayVariantSelectionEvent::setPluginId()
  2. 8.9.x core/lib/Drupal/Core/Render/PageDisplayVariantSelectionEvent.php \Drupal\Core\Render\PageDisplayVariantSelectionEvent::setPluginId()
  3. 11.x 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 75

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.