@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | 'entity_browser' => [ |
158 | 158 | 'iframe' => [ |
159 | 159 | $this->getUuid() => [ |
160 | - 'src' => Url::fromRoute('entity_browser.' . $this->configuration['entity_browser_id'], [], $data['query_parameters']) |
|
160 | + 'src' => Url::fromRoute('entity_browser.'.$this->configuration['entity_browser_id'], [], $data['query_parameters']) |
|
161 | 161 | ->toString(), |
162 | 162 | 'width' => $this->configuration['width'], |
163 | 163 | 'height' => $this->configuration['height'], |
@@ -185,15 +185,15 @@ discard block |
||
185 | 185 | public function propagateSelection(FilterResponseEvent $event) { |
186 | 186 | $render = [ |
187 | 187 | 'labels' => [ |
188 | - '#markup' => 'Labels: ' . implode(', ', array_map(function (EntityInterface $item) { |
|
188 | + '#markup' => 'Labels: '.implode(', ', array_map(function(EntityInterface $item) { |
|
189 | 189 | return $item->label(); |
190 | 190 | }, $this->entities)), |
191 | 191 | '#attached' => [ |
192 | - 'library' => ['entity_browser/'. $this->pluginDefinition['id'] . '_selection'], |
|
192 | + 'library' => ['entity_browser/'.$this->pluginDefinition['id'].'_selection'], |
|
193 | 193 | 'drupalSettings' => [ |
194 | 194 | 'entity_browser' => [ |
195 | 195 | $this->pluginDefinition['id'] => [ |
196 | - 'entities' => array_map(function (EntityInterface $item) { |
|
196 | + 'entities' => array_map(function(EntityInterface $item) { |
|
197 | 197 | return [$item->id(), $item->uuid(), $item->getEntityTypeId()]; |
198 | 198 | }, $this->entities), |
199 | 199 | 'uuid' => $this->request->query->get('uuid'), |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | * {@inheritdoc} |
212 | 212 | */ |
213 | 213 | public function path() { |
214 | - return '/entity-browser/' . $this->pluginDefinition['id'] . '/' . $this->configuration['entity_browser_id']; |
|
214 | + return '/entity-browser/'.$this->pluginDefinition['id'].'/'.$this->configuration['entity_browser_id']; |
|
215 | 215 | } |
216 | 216 | |
217 | 217 | /** |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | '#theme_wrappers' => ['container'], |
54 | 54 | 'path' => [ |
55 | 55 | '#type' => 'hidden', |
56 | - '#value' => Url::fromRoute('entity_browser.' . $this->configuration['entity_browser_id'], [], $data['query_parameters'])->toString(), |
|
56 | + '#value' => Url::fromRoute('entity_browser.'.$this->configuration['entity_browser_id'], [], $data['query_parameters'])->toString(), |
|
57 | 57 | ], |
58 | 58 | 'open_modal' => [ |
59 | 59 | '#type' => 'submit', |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | |
108 | 108 | $field_name = $triggering_element['#parents'][0]; |
109 | 109 | $element_name = $this->configuration['entity_browser_id']; |
110 | - $name = 'entity_browser_iframe_' . $element_name; |
|
110 | + $name = 'entity_browser_iframe_'.$element_name; |
|
111 | 111 | $content = [ |
112 | 112 | '#type' => 'html_tag', |
113 | 113 | '#tag' => 'iframe', |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | $html = drupal_render($content); |
126 | 126 | |
127 | 127 | $response = new AjaxResponse(); |
128 | - $response->addCommand(new OpenDialogCommand('#' . Html::getUniqueId($field_name . '-' . $element_name . '-dialog'), $this->configuration['link_text'], $html, [ |
|
128 | + $response->addCommand(new OpenDialogCommand('#'.Html::getUniqueId($field_name.'-'.$element_name.'-dialog'), $this->configuration['link_text'], $html, [ |
|
129 | 129 | 'width' => 'auto', |
130 | 130 | 'height' => 'auto', |
131 | 131 | 'modal' => TRUE, |