Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / metatag / metatag_pinterest / src / Plugin / metatag / Tag / PinterestMedia.php
diff --git a/web/modules/contrib/metatag/metatag_pinterest/src/Plugin/metatag/Tag/PinterestMedia.php b/web/modules/contrib/metatag/metatag_pinterest/src/Plugin/metatag/Tag/PinterestMedia.php
new file mode 100644 (file)
index 0000000..c59e042
--- /dev/null
@@ -0,0 +1,24 @@
+<?php
+
+namespace Drupal\metatag_pinterest\Plugin\metatag\Tag;
+
+use Drupal\metatag\Plugin\metatag\Tag\MetaPropertyBase;
+
+/**
+ * Provides a plugin for the 'pin:media' meta tag.
+ *
+ * @MetatagTag(
+ *   id = "pinterest_media",
+ *   label = @Translation("Media"),
+ *   description = @Translation("The URL of media which should represent the content."),
+ *   name = "pin:media",
+ *   group = "pinterest",
+ *   weight = 6,
+ *   type = "image",
+ *   secure = FALSE,
+ *   multiple = FALSE
+ * )
+ */
+class PinterestMedia extends MetaPropertyBase {
+  // Nothing here yet. Just a placeholder class for a plugin.
+}