Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PageDisplayVariantSelectionEvent.php

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal