Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / metatag / metatag_hreflang / src / Plugin / metatag / Tag / HreflangBase.php
index c19eaa567221eba88ccabda6e6a69c162dde58a4..469ca729f1ca88b3b1082faeb716815665ff627b 100644 (file)
@@ -2,7 +2,7 @@
 
 namespace Drupal\metatag_hreflang\Plugin\metatag\Tag;
 
-use \Drupal\metatag\Plugin\metatag\Tag\LinkRelBase;
+use Drupal\metatag\Plugin\metatag\Tag\LinkRelBase;
 
 /**
  * This base plugin allows "link hreflang" tags to be further customized.
@@ -18,7 +18,7 @@ abstract class HreflangBase extends LinkRelBase {
     if ($element) {
       // Rewrite the attributes so the hreflang value is before the href value.
       $element['#attributes'] = [
-        'rel' => 'hreflang',
+        'rel' => 'alternate',
         'hreflang' => $this->name(),
         'href' => $element['#attributes']['href'],
       ];