Completed
Pull Request — 8.x-1.x (#143)
by
unknown
02:47
created
src/Plugin/EntityBrowser/Widget/View.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     $form['view'] = $view->executeDisplay($this->configuration['view_display']);
117 117
 
118 118
     if (empty($view->field['entity_browser_select'])) {
119
-      $url = Url::fromRoute('entity.view.edit_form',['view'=>$this->configuration['view']])->toString();
119
+      $url = Url::fromRoute('entity.view.edit_form', ['view'=>$this->configuration['view']])->toString();
120 120
       if ($this->currentUser->hasPermission('administer views')) {
121 121
         return [
122 122
           '#markup' => t('Entity browser select form field not found on a view. <a href=":link">Go fix it</a>!', [':link' => $url]),
@@ -220,13 +220,13 @@  discard block
 block discarded – undo
220 220
     foreach ($displays as $display) {
221 221
       list($view_id, $display_id) = $display;
222 222
       $view = $this->entityManager->getStorage('view')->load($view_id);
223
-      $options[$view_id . '.' . $display_id] = $this->t('@view : @display', array('@view' => $view->label(), '@display' => $view->get('display')[$display_id]['display_title']));
223
+      $options[$view_id.'.'.$display_id] = $this->t('@view : @display', array('@view' => $view->label(), '@display' => $view->get('display')[$display_id]['display_title']));
224 224
     }
225 225
 
226 226
     $form['view'] = [
227 227
       '#type' => 'select',
228 228
       '#title' => $this->t('View : View display'),
229
-      '#default_value' => $this->configuration['view'] . '.' . $this->configuration['view_display'],
229
+      '#default_value' => $this->configuration['view'].'.'.$this->configuration['view_display'],
230 230
       '#options' => $options,
231 231
     ];
232 232
 
Please login to merge, or discard this patch.