@@ 97-106 (lines=10) @@ | ||
94 | /** |
|
95 | * {@inheritdoc} |
|
96 | */ |
|
97 | public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) { |
|
98 | return new static( |
|
99 | $configuration, |
|
100 | $plugin_id, |
|
101 | $plugin_definition, |
|
102 | $container->get('event_dispatcher'), |
|
103 | $container->get('entity_type.manager'), |
|
104 | $container->get('plugin.manager.entity_browser.widget_validation') |
|
105 | ); |
|
106 | } |
|
107 | ||
108 | /** |
|
109 | * {@inheritdoc} |
@@ 51-61 (lines=11) @@ | ||
48 | /** |
|
49 | * {@inheritdoc} |
|
50 | */ |
|
51 | public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) { |
|
52 | return new static( |
|
53 | $configuration, |
|
54 | $plugin_id, |
|
55 | $plugin_definition, |
|
56 | $container->get('event_dispatcher'), |
|
57 | $container->get('entity_type.manager'), |
|
58 | $container->get('plugin.manager.entity_browser.widget_validation'), |
|
59 | $container->get('current_user') |
|
60 | ); |
|
61 | } |
|
62 | ||
63 | /** |
|
64 | * Constructs a new View object. |