protected function FieldLayoutEntityDisplayTrait::getLayoutDefinition in Drupal 10
Same name and namespace in other branches
- 8 core/modules/field_layout/src/Entity/FieldLayoutEntityDisplayTrait.php \Drupal\field_layout\Entity\FieldLayoutEntityDisplayTrait::getLayoutDefinition()
- 9 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.
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);
}