You are here

public function EntityDisplayWithLayoutInterface::setLayout in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/field_layout/src/Display/EntityDisplayWithLayoutInterface.php \Drupal\field_layout\Display\EntityDisplayWithLayoutInterface::setLayout()
  2. 9 core/modules/field_layout/src/Display/EntityDisplayWithLayoutInterface.php \Drupal\field_layout\Display\EntityDisplayWithLayoutInterface::setLayout()

Sets the layout plugin for this display.

Parameters

\Drupal\Core\Layout\LayoutInterface $layout: A layout plugin.

Return value

$this

File

core/modules/field_layout/src/Display/EntityDisplayWithLayoutInterface.php, line 57

Class

EntityDisplayWithLayoutInterface
Provides a common interface for entity displays that have layout.

Namespace

Drupal\field_layout\Display

Code

public function setLayout(LayoutInterface $layout);