Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / entity_browser / src / Plugin / EntityBrowser / Widget / View.php
index 605f782987357fbaae472dd0c0d7d8f67ece7cda..f0aaa19e30ff6d5fc56f8511287af34b6d0d4cc5 100644 (file)
@@ -40,10 +40,10 @@ class View extends WidgetBase implements ContainerFactoryPluginInterface {
    * {@inheritdoc}
    */
   public function defaultConfiguration() {
-    return array(
+    return [
       'view' => NULL,
       'view_display' => NULL,
-    ) + parent::defaultConfiguration();
+    ] + parent::defaultConfiguration();
   }
 
   /**
@@ -238,7 +238,7 @@ class View extends WidgetBase implements ContainerFactoryPluginInterface {
     foreach ($displays as $display) {
       list($view_id, $display_id) = $display;
       $view = $this->entityTypeManager->getStorage('view')->load($view_id);
-      $options[$view_id . '.' . $display_id] = $this->t('@view : @display', array('@view' => $view->label(), '@display' => $view->get('display')[$display_id]['display_title']));
+      $options[$view_id . '.' . $display_id] = $this->t('@view : @display', ['@view' => $view->label(), '@display' => $view->get('display')[$display_id]['display_title']]);
     }
 
     $form['view'] = [