You are here

public static function FieldLayoutBuilder::create in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/field_layout/src/FieldLayoutBuilder.php \Drupal\field_layout\FieldLayoutBuilder::create()
  2. 9 core/modules/field_layout/src/FieldLayoutBuilder.php \Drupal\field_layout\FieldLayoutBuilder::create()

File

core/modules/field_layout/src/FieldLayoutBuilder.php, line 47

Class

FieldLayoutBuilder
Builds a field layout.

Namespace

Drupal\field_layout

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('plugin.manager.core.layout'), $container
    ->get('entity_field.manager'));
}