You are here

public function BoundDisplayInterface::remapToLayout in Layout 8.2

Adjusts this display's block placement to work with the provided layout.

Essentially a shortcut that calls DisplayInterface::mapBlocksToLayout(), saves the result in the appropriate object property, and finally calls BoundDisplayInterface::setLayout().

Parameters

\Drupal\layout\Plugin\LayoutInterface $layout: The new layout to which blocks should be remapped.

See also

\Drupal\layout\Config\DisplayInterface::mapBlocksToLayout()

1 method overrides BoundDisplayInterface::remapToLayout()
Display::remapToLayout in lib/Drupal/layout/Entity/Display.php
Implements BoundDisplayInterface::remapToLayout().

File

lib/Drupal/layout/Config/BoundDisplayInterface.php, line 72
Definition of Drupal\layout\Config\BoundDisplayInterface

Class

BoundDisplayInterface
Interface for a Display object that is coupled to a specific layout.

Namespace

Drupal\layout\Config

Code

public function remapToLayout(LayoutInterface $layout);