public function Display::setLayout

Set the contained layout plugin.

Parameters

string $plugin_id: The plugin id of the desired layout plugin.

Overrides BoundDisplayInterface::setLayout

1 call to Display::setLayout()
Display::remapToLayout in drupal/core/modules/layout/lib/Drupal/layout/Plugin/Core/Entity/Display.php
Implements BoundDisplayInterface::remapToLayout().

File

drupal/core/modules/layout/lib/Drupal/layout/Plugin/Core/Entity/Display.php, line 138
Definition of Drupal\layout\Plugin\Core\Entity\Display.

Class

Display
Defines the display entity.

Namespace

Drupal\layout\Plugin\Core\Entity

Code

public function setLayout($plugin_id) {

  // @todo verification?
  $this->layout = $plugin_id;
  $this->layoutInstance = NULL;
  $this->blocksInRegions = NULL;
}