You are here

protected function FieldLayoutEntityDisplayTrait::getLayoutDefinition in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/field_layout/src/Entity/FieldLayoutEntityDisplayTrait.php \Drupal\field_layout\Entity\FieldLayoutEntityDisplayTrait::getLayoutDefinition()
  2. 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\Entity

Code

protected function getLayoutDefinition($layout_id) {
  return \Drupal::service('plugin.manager.core.layout')
    ->getDefinition($layout_id);
}