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.
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'],
];