function EntityDisplayWithLayoutInterface::setLayoutId

Same name 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()
  3. 11.x 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 = []);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.