You are here

public function EntityDisplayWithLayoutInterface::setLayoutId in Drupal 8

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

Sets the layout plugin ID for this display.

Parameters

string|null $layout_id: Either a valid layout plugin ID, or NULL to remove the layout setting.

array $layout_settings: (optional) An array of settings for this layout.

Return value

$this

File

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

Class

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

Namespace

Drupal\field_layout\Display

Code

public function setLayoutId($layout_id, array $layout_settings = []);