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 {
13 public function output() {
14 $element = parent::output();
15 if (!empty($element['#attributes']['content'])) {
16 $element['#tag'] = 'link';
17 $element['#attributes'] = [
18 'rel' => $this->name(),
19 'href' => $element['#attributes']['content'],
21 unset($element['#attributes']['content']);