Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / metatag / src / Plugin / metatag / Tag / MetaItempropBase.php
index 9596d8954ca82a9eeab674e93cf4beda9a1e1cbc..802e247fae2223e55e09ecd52b5e66b21d114122 100644 (file)
@@ -1,34 +1,17 @@
 <?php
 
-/**
- * This base plugin allows "itemprop"-style meta tags, e.g. Google plus tags, to
- * be further customized.
- */
-
 namespace Drupal\metatag\Plugin\metatag\Tag;
 
+/**
+ * This base plugin allows "itemprop"-style meta tags be customized.
+ *
+ * Used with e.g. the Google Plus tags.
+ */
 abstract class MetaItempropBase extends MetaNameBase {
+
   /**
-   * Display the meta tag.
+   * {@inheritdoc}
    */
-  public function output() {
-    if (empty($this->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();
-
-      $element = [
-        '#tag' => 'meta',
-        '#attributes' => [
-          'itemprop' => $this->name,
-          'content' => $value,
-        ]
-      ];
-    }
+  protected $nameAttribute = 'itemprop';
 
-    return $element;
-  }
 }