public function PageDisplayVariantSelectionEvent::setPluginId in Drupal 9
Same name and namespace in other branches
- 8 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\RenderCode
public function setPluginId($plugin_id) {
$this->pluginId = $plugin_id;
return $this;
}