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\EntityViewDisplayEditForm;
9 use Symfony\Component\DependencyInjection\ContainerInterface;
12 * Edit form for the EntityViewDisplay entity type.
14 class FieldLayoutEntityViewDisplayEditForm extends EntityViewDisplayEditForm {
16 use FieldLayoutEntityDisplayFormTrait;
19 * FieldLayoutEntityViewDisplayEditForm constructor.
21 * @param \Drupal\Core\Field\FieldTypePluginManagerInterface $field_type_manager
22 * The field type manager.
23 * @param \Drupal\Component\Plugin\PluginManagerBase $plugin_manager
24 * The formatter plugin manager.
25 * @param \Drupal\Core\Layout\LayoutPluginManagerInterface $layout_plugin_manager
26 * The field layout plugin manager.
28 public function __construct(FieldTypePluginManagerInterface $field_type_manager, PluginManagerBase $plugin_manager, LayoutPluginManagerInterface $layout_plugin_manager) {
29 parent::__construct($field_type_manager, $plugin_manager);
30 $this->layoutPluginManager = $layout_plugin_manager;
36 public static function create(ContainerInterface $container) {
38 $container->get('plugin.manager.field.field_type'),
39 $container->get('plugin.manager.field.formatter'),
40 $container->get('plugin.manager.core.layout')