3 namespace Drupal\field_layout\Form;
5 use Drupal\Component\Plugin\PluginManagerBase;
6 use Drupal\Core\Field\FieldTypePluginManagerInterface;
7 use Drupal\Core\Layout\LayoutPluginManagerInterface;
8 use Drupal\field_ui\Form\EntityFormDisplayEditForm;
9 use Symfony\Component\DependencyInjection\ContainerInterface;
12 * Edit form for the EntityFormDisplay entity type.
16 class FieldLayoutEntityFormDisplayEditForm extends EntityFormDisplayEditForm {
18 use FieldLayoutEntityDisplayFormTrait;
21 * FieldLayoutEntityFormDisplayEditForm constructor.
23 * @param \Drupal\Core\Field\FieldTypePluginManagerInterface $field_type_manager
24 * The field type manager.
25 * @param \Drupal\Component\Plugin\PluginManagerBase $plugin_manager
26 * The widget plugin manager.
27 * @param \Drupal\Core\Layout\LayoutPluginManagerInterface $layout_plugin_manager
28 * The layout plugin manager.
30 public function __construct(FieldTypePluginManagerInterface $field_type_manager, PluginManagerBase $plugin_manager, LayoutPluginManagerInterface $layout_plugin_manager) {
31 parent::__construct($field_type_manager, $plugin_manager);
32 $this->layoutPluginManager = $layout_plugin_manager;
38 public static function create(ContainerInterface $container) {
40 $container->get('plugin.manager.field.field_type'),
41 $container->get('plugin.manager.field.widget'),
42 $container->get('plugin.manager.core.layout')