public function Display::setLayout in Layout 8.2
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 lib/
Drupal/ layout/ Entity/ Display.php - Implements BoundDisplayInterface::remapToLayout().
File
- lib/
Drupal/ layout/ Entity/ Display.php, line 140 - Definition of Drupal\layout\Entity\Display.
Class
- Display
- Defines the display entity.
Namespace
Drupal\layout\EntityCode
public function setLayout($plugin_id) {
// @todo verification?
$this->layout = $plugin_id;
$this->layoutInstance = NULL;
$this->blocksInRegions = NULL;
}