public function EntityDisplayWithLayoutInterface::ensureLayout in Drupal 8
Same name and namespace in other branches
- 9 core/modules/field_layout/src/Display/EntityDisplayWithLayoutInterface.php \Drupal\field_layout\Display\EntityDisplayWithLayoutInterface::ensureLayout()
- 10 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\DisplayCode
public function ensureLayout($default_layout_id = 'layout_onecol');