3 namespace Drupal\metatag\Plugin\metatag\Tag;
6 * This base plugin allows "link rel" tags to be further customized.
8 abstract class LinkRelBase extends MetaNameBase {
11 * Display the meta tag.
13 public function output() {
14 $element = parent::output();
16 $element['#tag'] = 'link';
17 $element['#attributes'] = [
18 'rel' => $this->name(),
19 'href' => $element['#attributes']['content'],
21 unset($element['#attributes']['content']);