You are here

public function EntityDisplayWithLayoutInterface::ensureLayout in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/field_layout/src/Display/EntityDisplayWithLayoutInterface.php \Drupal\field_layout\Display\EntityDisplayWithLayoutInterface::ensureLayout()
  2. 9 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');