function EntityDisplayWithLayoutInterface::ensureLayout

Same name in other branches
  1. 9 core/modules/field_layout/src/Display/EntityDisplayWithLayoutInterface.php \Drupal\field_layout\Display\EntityDisplayWithLayoutInterface::ensureLayout()
  2. 8.9.x core/modules/field_layout/src/Display/EntityDisplayWithLayoutInterface.php \Drupal\field_layout\Display\EntityDisplayWithLayoutInterface::ensureLayout()
  3. 11.x core/modules/field_layout/src/Display/EntityDisplayWithLayoutInterface.php \Drupal\field_layout\Display\EntityDisplayWithLayoutInterface::ensureLayout()

Ensures this entity has a layout.

Parameters

string $default_layout_id: (optional) The layout ID to use as a default. Defaults to 'layout_onecol'.

Return value

$this

File

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

Class

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

Namespace

Drupal\field_layout\Display

Code

public function ensureLayout($default_layout_id = 'layout_onecol');

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