protected function FieldLayoutEntityDisplayTrait::getLayoutDefinition in Drupal 8
Same name and namespace in other branches
- 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.
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);
}