function FieldLayoutBuilder::create

Same name in other branches
  1. 9 core/modules/field_layout/src/FieldLayoutBuilder.php \Drupal\field_layout\FieldLayoutBuilder::create()
  2. 10 core/modules/field_layout/src/FieldLayoutBuilder.php \Drupal\field_layout\FieldLayoutBuilder::create()
  3. 11.x core/modules/field_layout/src/FieldLayoutBuilder.php \Drupal\field_layout\FieldLayoutBuilder::create()

Overrides ContainerInjectionInterface::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'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.