Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / metatag / metatag_views / src / Plugin / views / display_extender / MetatagDisplayExtender.php
index c9c1d11cd45c93755e350e0050686246e1d91469..b14946e7143ab67183ba023c3184d3e70973a079 100644 (file)
@@ -129,15 +129,15 @@ class MetatagDisplayExtender extends DisplayExtenderPluginBase {
    * This output is returned as an array.
    */
   public function optionsSummary(&$categories, &$options) {
-    $categories['metatags'] = array(
+    $categories['metatags'] = [
       'title' => t('Meta tags'),
       'column' => 'second',
-    );
-    $options['metatags'] = array(
+    ];
+    $options['metatags'] = [
       'category' => 'metatags',
       'title' => t('Meta tags'),
       'value' => $this->hasMetatags() ? t('Overridden') : t('Using defaults'),
-    );
+    ];
   }
 
   /**
@@ -165,7 +165,7 @@ class MetatagDisplayExtender extends DisplayExtenderPluginBase {
    *   The meta tag values.
    */
   public function getMetatags() {
-    $metatags = array();
+    $metatags = [];
 
     if (!empty($this->options['metatags'])) {
       $metatags = $this->options['metatags'];
@@ -175,7 +175,7 @@ class MetatagDisplayExtender extends DisplayExtenderPluginBase {
   }
 
   /**
-   * Sets the metatags for the given view.
+   * Sets the meta tags for the given view.
    *
    * @param array $metatags
    *   Metatag arrays as suitable for storage.