Version 1
[yaffs-website] / web / modules / contrib / metatag / src / Plugin / metatag / Tag / CanonicalUrl.php
diff --git a/web/modules/contrib/metatag/src/Plugin/metatag/Tag/CanonicalUrl.php b/web/modules/contrib/metatag/src/Plugin/metatag/Tag/CanonicalUrl.php
new file mode 100644 (file)
index 0000000..defecee
--- /dev/null
@@ -0,0 +1,22 @@
+<?php
+
+namespace Drupal\metatag\Plugin\metatag\Tag;
+
+/**
+ * Provides a plugin for the 'canonical' meta tag.
+ *
+ * @MetatagTag(
+ *   id = "canonical_url",
+ *   label = @Translation("Canonical URL"),
+ *   description = @Translation("Preferred page location or URL to help eliminate duplicate content for search engines."),
+ *   name = "canonical",
+ *   group = "advanced",
+ *   weight = 1,
+ *   type = "uri",
+ *   secure = FALSE,
+ *   multiple = FALSE
+ * )
+ */
+class CanonicalUrl extends LinkRelBase {
+  // Nothing here yet. Just a placeholder class for a plugin.
+}