@@ -69,7 +69,7 @@ |
||
69 | 69 | */ |
70 | 70 | protected $uuid = NULL; |
71 | 71 | |
72 | - /** |
|
72 | + /** |
|
73 | 73 | * Current request. |
74 | 74 | * |
75 | 75 | * @var \Symfony\Component\HttpFoundation\Request |
@@ -72,9 +72,9 @@ |
||
72 | 72 | * @param \Drupal\Core\Session\AccountInterface $current_user |
73 | 73 | * The current user. |
74 | 74 | */ |
75 | - public function __construct(array $configuration, $plugin_id, $plugin_definition, EventDispatcherInterface $event_dispatcher, EntityManagerInterface $entity_manager, AccountInterface $current_user) { |
|
76 | - parent::__construct($configuration, $plugin_id, $plugin_definition, $event_dispatcher, $entity_manager); |
|
77 | - $this->currentUser = $current_user; |
|
75 | + public function __construct(array $configuration, $plugin_id, $plugin_definition, EventDispatcherInterface $event_dispatcher, EntityManagerInterface $entity_manager, AccountInterface $current_user) { |
|
76 | + parent::__construct($configuration, $plugin_id, $plugin_definition, $event_dispatcher, $entity_manager); |
|
77 | + $this->currentUser = $current_user; |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | /** |
@@ -24,7 +24,6 @@ discard block |
||
24 | 24 | |
25 | 25 | /** |
26 | 26 | * Plugin implementation of the 'entity_reference' widget for entity browser. |
27 | - |
|
28 | 27 | * @FieldWidget( |
29 | 28 | * id = "entity_browser_entity_reference", |
30 | 29 | * label = @Translation("Entity browser"), |
@@ -174,8 +173,8 @@ discard block |
||
174 | 173 | } |
175 | 174 | |
176 | 175 | /** |
177 | - * {@inheritdoc} |
|
178 | - */ |
|
176 | + * {@inheritdoc} |
|
177 | + */ |
|
179 | 178 | public function settingsSummary() { |
180 | 179 | $summary = []; |
181 | 180 | $entity_browser_id = $this->getSetting('entity_browser'); |