public function BoundDisplayInterface::remapToLayout

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 drupal/core/modules/layout/lib/Drupal/layout/Plugin/Core/Entity/Display.php
Implements BoundDisplayInterface::remapToLayout().

File

drupal/core/modules/layout/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);