X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fmodules%2Fcontrib%2Fmetatag%2Fsrc%2FPlugin%2Fmetatag%2FTag%2FMetaPropertyBase.php;fp=web%2Fmodules%2Fcontrib%2Fmetatag%2Fsrc%2FPlugin%2Fmetatag%2FTag%2FMetaPropertyBase.php;h=c242d23cf15a1bc1476e2c3b87986f2ed0837ab3;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=770124fe951b63810c7321acfc2654e4834697c1;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/web/modules/contrib/metatag/src/Plugin/metatag/Tag/MetaPropertyBase.php b/web/modules/contrib/metatag/src/Plugin/metatag/Tag/MetaPropertyBase.php index 770124fe9..c242d23cf 100644 --- a/web/modules/contrib/metatag/src/Plugin/metatag/Tag/MetaPropertyBase.php +++ b/web/modules/contrib/metatag/src/Plugin/metatag/Tag/MetaPropertyBase.php @@ -1,39 +1,17 @@ value)) { - // If there is no value, we don't want a tag output. - $element = ''; - } - else { - // Parse out the image URL, if needed. - $value = $this->parseImageURL(); - - // If tag must be secure, convert all http:// to https://. - if ($this->secure() && strpos($value, 'http://') !== FALSE) { - $value = str_replace('http://', 'https://', $value); - } - - $element = [ - '#tag' => 'meta', - '#attributes' => [ - 'property' => $this->name, - 'content' => $value, - ] - ]; - } + protected $nameAttribute = 'property'; - return $element; - } }