Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / entity_browser / src / Plugin / EntityBrowser / SelectionDisplay / View.php
index 36fe12ab3b6658289e19e93dcb670d3a4c557e72..6d43421c3fd8c7ab93df27be296d467e532cc1d8 100644 (file)
@@ -26,10 +26,10 @@ class View extends SelectionDisplayBase {
    * {@inheritdoc}
    */
   public function defaultConfiguration() {
-    return array(
+    return [
       'view' => NULL,
       'view_display' => NULL,
-    ) + parent::defaultConfiguration();
+    ] + parent::defaultConfiguration();
   }
 
   /**
@@ -61,11 +61,11 @@ class View extends SelectionDisplayBase {
 
     $form['view'] = $storage['selection_display_view']->executeDisplay($this->configuration['view_display']);
 
-    $form['use_selected'] = array(
+    $form['use_selected'] = [
       '#type' => 'submit',
       '#value' => $this->t('Use selection'),
       '#name' => 'use_selected',
-    );
+    ];
 
     return $form;
   }
@@ -89,7 +89,7 @@ class View extends SelectionDisplayBase {
     $views = Views::getAllViews();
     foreach ($views as $view_id => $view) {
       foreach ($view->get('display') as $display_id => $display) {
-        $options[$view_id . '.' . $display_id] = $this->t('@view : @display', array('@view' => $view->label(), '@display' => $display['display_title']));
+        $options[$view_id . '.' . $display_id] = $this->t('@view : @display', ['@view' => $view->label(), '@display' => $display['display_title']]);
       }
     }