4 * This base plugin allows "property"-style meta tags, e.g. Open Graph tags, to
5 * be further customized.
8 namespace Drupal\metatag\Plugin\metatag\Tag;
10 abstract class MetaPropertyBase extends MetaNameBase {
12 * Display the meta tag.
14 public function output() {
15 if (empty($this->value)) {
16 // If there is no value, we don't want a tag output.
20 // Parse out the image URL, if needed.
21 $value = $this->parseImageURL();
23 // If tag must be secure, convert all http:// to https://.
24 if ($this->secure() && strpos($value, 'http://') !== FALSE) {
25 $value = str_replace('http://', 'https://', $value);
31 'property' => $this->name,