projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website]
/
web
/
modules
/
contrib
/
metatag
/
src
/
Plugin
/
metatag
/
Tag
/
LinkRelBase.php
diff --git
a/web/modules/contrib/metatag/src/Plugin/metatag/Tag/LinkRelBase.php
b/web/modules/contrib/metatag/src/Plugin/metatag/Tag/LinkRelBase.php
index e482cf3a2405fc65bd704d96c0b79528c5eba0a5..449ce2fb4991cfe45d6bff2834323c277cc69a16 100644
(file)
--- a/
web/modules/contrib/metatag/src/Plugin/metatag/Tag/LinkRelBase.php
+++ b/
web/modules/contrib/metatag/src/Plugin/metatag/Tag/LinkRelBase.php
@@
-8,11
+8,11
@@
namespace Drupal\metatag\Plugin\metatag\Tag;
abstract class LinkRelBase extends MetaNameBase {
/**
abstract class LinkRelBase extends MetaNameBase {
/**
- *
Display the meta tag.
+ *
{@inheritdoc}
*/
public function output() {
$element = parent::output();
*/
public function output() {
$element = parent::output();
- if (
$element
) {
+ if (
!empty($element['#attributes']['content'])
) {
$element['#tag'] = 'link';
$element['#attributes'] = [
'rel' => $this->name(),
$element['#tag'] = 'link';
$element['#attributes'] = [
'rel' => $this->name(),