Completed
Pull Request — 8.x-1.x (#153)
by
unknown
03:10
created
src/Plugin/EntityBrowser/Display/Modal.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Plugin/EntityBrowser/FieldWidgetDisplay/RenderedEntity.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
    */
110 110
   public function calculateDependencies() {
111 111
     $dependencies = parent::calculateDependencies();
112
-    if ($view_mode = $this->entityTypeManager->getStorage('entity_view_mode')->load($this->configuration['entity_type'] . '.' . $this->configuration['view_mode'])) {
112
+    if ($view_mode = $this->entityTypeManager->getStorage('entity_view_mode')->load($this->configuration['entity_type'].'.'.$this->configuration['view_mode'])) {
113 113
       $dependencies[$view_mode->getConfigDependencyKey()][] = $view_mode->getConfigDependencyName();
114 114
     }
115 115
     return $dependencies;
Please login to merge, or discard this patch.