You are here

public function EntityDisplayWithLayoutInterface::setLayout in Drupal 9

Same name and namespace in other branches
  1. 8 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);