function FieldLayoutEntityDisplayTrait::getLayoutDefinition
Same name in other branches
- 9 core/modules/field_layout/src/Entity/FieldLayoutEntityDisplayTrait.php \Drupal\field_layout\Entity\FieldLayoutEntityDisplayTrait::getLayoutDefinition()
- 8.9.x core/modules/field_layout/src/Entity/FieldLayoutEntityDisplayTrait.php \Drupal\field_layout\Entity\FieldLayoutEntityDisplayTrait::getLayoutDefinition()
- 11.x core/modules/field_layout/src/Entity/FieldLayoutEntityDisplayTrait.php \Drupal\field_layout\Entity\FieldLayoutEntityDisplayTrait::getLayoutDefinition()
Gets a layout definition.
Parameters
string $layout_id: The layout ID.
Return value
\Drupal\Core\Layout\LayoutDefinition The layout definition.
1 call to FieldLayoutEntityDisplayTrait::getLayoutDefinition()
- FieldLayoutEntityDisplayTrait::setLayoutId in core/
modules/ field_layout/ src/ Entity/ FieldLayoutEntityDisplayTrait.php - Implements \Drupal\field_layout\Display\EntityDisplayWithLayoutInterface::setLayoutId().
File
-
core/
modules/ field_layout/ src/ Entity/ FieldLayoutEntityDisplayTrait.php, line 26
Class
- FieldLayoutEntityDisplayTrait
- Provides shared code for entity displays.
Namespace
Drupal\field_layout\EntityCode
protected function getLayoutDefinition($layout_id) {
return \Drupal::service('plugin.manager.core.layout')->getDefinition($layout_id);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.