public function EntityDisplayWithLayoutInterface::setLayout in Drupal 8
Same name and namespace in other branches
- 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\DisplayCode
public function setLayout(LayoutInterface $layout);