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