Completed
Push — 8.x-1.x ( 28fdc3...200447 )
by Janez
02:37
created
src/Plugin/EntityBrowser/Widget/View.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -238,13 +238,13 @@
 block discarded – undo
238 238
     foreach ($displays as $display) {
239 239
       list($view_id, $display_id) = $display;
240 240
       $view = $this->entityTypeManager->getStorage('view')->load($view_id);
241
-      $options[$view_id . '.' . $display_id] = $this->t('@view : @display', array('@view' => $view->label(), '@display' => $view->get('display')[$display_id]['display_title']));
241
+      $options[$view_id.'.'.$display_id] = $this->t('@view : @display', array('@view' => $view->label(), '@display' => $view->get('display')[$display_id]['display_title']));
242 242
     }
243 243
 
244 244
     $form['view'] = [
245 245
       '#type' => 'select',
246 246
       '#title' => $this->t('View : View display'),
247
-      '#default_value' => $this->configuration['view'] . '.' . $this->configuration['view_display'],
247
+      '#default_value' => $this->configuration['view'].'.'.$this->configuration['view_display'],
248 248
       '#options' => $options,
249 249
       '#empty_option' => $this->t('- Select a view -'),
250 250
       '#required' => TRUE,
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -125,8 +125,7 @@  discard block
 block discarded – undo
125 125
         return [
126 126
           '#markup' => $this->t('Entity browser select form field not found on a view. <a href=":link">Go fix it</a>!', [':link' => $url]),
127 127
         ];
128
-      }
129
-      else {
128
+      } else {
130 129
         return [
131 130
           '#markup' => $this->t('Entity browser select form field not found on a view. Go fix it!'),
132 131
         ];
@@ -184,8 +183,7 @@  discard block
 block discarded – undo
184 183
                 ]);
185 184
                 $form_state->setError($form['widget']['view']['entity_browser_select'], $message);
186 185
               }
187
-            }
188
-            catch (PluginNotFoundException $e) {
186
+            } catch (PluginNotFoundException $e) {
189 187
               $message = $this->t('The Entity Type @type does not exist.', [
190 188
                 '@type' => $parts[0],
191 189
               ]);
Please login to merge, or discard this patch.