You are here

public function FieldLayoutBuilder::__construct in Drupal 8

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

Constructs a new FieldLayoutBuilder.

Parameters

\Drupal\Core\Layout\LayoutPluginManagerInterface $layout_plugin_manager: The layout plugin manager.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.

File

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

Class

FieldLayoutBuilder
Builds a field layout.

Namespace

Drupal\field_layout

Code

public function __construct(LayoutPluginManagerInterface $layout_plugin_manager, EntityFieldManagerInterface $entity_field_manager) {
  $this->layoutPluginManager = $layout_plugin_manager;
  $this->entityFieldManager = $entity_field_manager;
}