@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | '#theme_wrappers' => ['container'], |
145 | 145 | 'path' => [ |
146 | 146 | '#type' => 'hidden', |
147 | - '#value' => Url::fromRoute('entity_browser.' . $this->configuration['entity_browser_id'], [], $data['query_parameters'])->toString(), |
|
147 | + '#value' => Url::fromRoute('entity_browser.'.$this->configuration['entity_browser_id'], [], $data['query_parameters'])->toString(), |
|
148 | 148 | ], |
149 | 149 | 'open_modal' => [ |
150 | 150 | '#type' => 'submit', |
@@ -207,13 +207,13 @@ discard block |
||
207 | 207 | 'height' => $this->configuration['height'] - 90, |
208 | 208 | 'frameborder' => 0, |
209 | 209 | 'style' => 'padding:0', |
210 | - 'name' => 'entity_browser_iframe_' . $element_name, |
|
210 | + 'name' => 'entity_browser_iframe_'.$element_name, |
|
211 | 211 | ], |
212 | 212 | ]; |
213 | 213 | $html = drupal_render($content); |
214 | 214 | |
215 | 215 | $response = new AjaxResponse(); |
216 | - $response->addCommand(new OpenDialogCommand('#' . Html::getUniqueId($field_name . '-' . $element_name . '-dialog'), $this->configuration['link_text'], $html, [ |
|
216 | + $response->addCommand(new OpenDialogCommand('#'.Html::getUniqueId($field_name.'-'.$element_name.'-dialog'), $this->configuration['link_text'], $html, [ |
|
217 | 217 | 'width' => 'auto', |
218 | 218 | 'height' => 'auto', |
219 | 219 | 'modal' => TRUE, |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | public function propagateSelection(FilterResponseEvent $event) { |
312 | 312 | $render = [ |
313 | 313 | 'labels' => [ |
314 | - '#markup' => 'Labels: ' . implode(', ', array_map(function (EntityInterface $item) { |
|
314 | + '#markup' => 'Labels: '.implode(', ', array_map(function(EntityInterface $item) { |
|
315 | 315 | return $item->label(); |
316 | 316 | }, $this->entities)), |
317 | 317 | '#attached' => [ |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | 'drupalSettings' => [ |
320 | 320 | 'entity_browser' => [ |
321 | 321 | 'modal' => [ |
322 | - 'entities' => array_map(function (EntityInterface $item) { |
|
322 | + 'entities' => array_map(function(EntityInterface $item) { |
|
323 | 323 | return [$item->id(), $item->uuid(), $item->getEntityTypeId()]; |
324 | 324 | }, $this->entities), |
325 | 325 | 'uuid' => $this->request->query->get('uuid'), |
@@ -337,7 +337,7 @@ discard block |
||
337 | 337 | * {@inheritdoc} |
338 | 338 | */ |
339 | 339 | public function path() { |
340 | - return '/entity-browser/modal/' . $this->configuration['entity_browser_id']; |
|
340 | + return '/entity-browser/modal/'.$this->configuration['entity_browser_id']; |
|
341 | 341 | } |
342 | 342 | |
343 | 343 | /** |