Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / metatag / src / Plugin / metatag / Tag / MetaHttpEquivBase.php
index 8db004d0a0da56d743d3d601a2a7555c49578e4c..607d6bf75ee9b0fae1c39f54d18c190295950874 100644 (file)
@@ -1,31 +1,17 @@
 <?php
 
-/**
- * This base plugin allows "http-equiv"-style meta tags, e.g. the content
- * language meta tag, to be further customized.
- */
-
 namespace Drupal\metatag\Plugin\metatag\Tag;
 
+/**
+ * This base plugin allows "http-equiv"-style meta tags to be customized.
+ *
+ * Used with e.g. the content language meta tag.
+ */
 abstract class MetaHttpEquivBase 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 {
-      $element = [
-        '#tag' => 'meta',
-        '#attributes' => [
-          'http-equiv' => $this->name,
-          'content' => $this->value(),
-        ]
-      ];
-    }
+  protected $nameAttribute = 'http-equiv';
 
-    return $element;
-  }
 }