@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | '#theme_wrappers' => ['container'], |
144 | 144 | 'path' => [ |
145 | 145 | '#type' => 'hidden', |
146 | - '#value' => Url::fromRoute('entity_browser.' . $this->configuration['entity_browser_id'], [], $data['query_parameters'])->toString(), |
|
146 | + '#value' => Url::fromRoute('entity_browser.'.$this->configuration['entity_browser_id'], [], $data['query_parameters'])->toString(), |
|
147 | 147 | ], |
148 | 148 | 'open_modal' => [ |
149 | 149 | '#type' => 'submit', |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | |
197 | 197 | $field_name = $triggering_element['#parents'][0]; |
198 | 198 | $element_name = $this->configuration['entity_browser_id']; |
199 | - $name = 'entity_browser_iframe_' . $element_name; |
|
199 | + $name = 'entity_browser_iframe_'.$element_name; |
|
200 | 200 | $content = [ |
201 | 201 | '#type' => 'html_tag', |
202 | 202 | '#tag' => 'iframe', |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | $html = drupal_render($content); |
215 | 215 | |
216 | 216 | $response = new AjaxResponse(); |
217 | - $response->addCommand(new OpenDialogCommand('#' . Html::getUniqueId($field_name . '-' . $element_name . '-dialog'), $this->configuration['link_text'], $html, [ |
|
217 | + $response->addCommand(new OpenDialogCommand('#'.Html::getUniqueId($field_name.'-'.$element_name.'-dialog'), $this->configuration['link_text'], $html, [ |
|
218 | 218 | 'width' => 'auto', |
219 | 219 | 'height' => 'auto', |
220 | 220 | 'modal' => TRUE, |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | public function propagateSelection(FilterResponseEvent $event) { |
305 | 305 | $render = [ |
306 | 306 | 'labels' => [ |
307 | - '#markup' => 'Labels: ' . implode(', ', array_map(function (EntityInterface $item) { |
|
307 | + '#markup' => 'Labels: '.implode(', ', array_map(function(EntityInterface $item) { |
|
308 | 308 | return $item->label(); |
309 | 309 | }, $this->entities)), |
310 | 310 | '#attached' => [ |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | 'drupalSettings' => [ |
313 | 313 | 'entity_browser' => [ |
314 | 314 | 'modal' => [ |
315 | - 'entities' => array_map(function (EntityInterface $item) { |
|
315 | + 'entities' => array_map(function(EntityInterface $item) { |
|
316 | 316 | return [$item->id(), $item->uuid(), $item->getEntityTypeId()]; |
317 | 317 | }, $this->entities), |
318 | 318 | 'uuid' => $this->request->query->get('uuid'), |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | * {@inheritdoc} |
331 | 331 | */ |
332 | 332 | public function path() { |
333 | - return '/entity-browser/modal/' . $this->configuration['entity_browser_id']; |
|
333 | + return '/entity-browser/modal/'.$this->configuration['entity_browser_id']; |
|
334 | 334 | } |
335 | 335 | |
336 | 336 | /** |