Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / metatag / src / Plugin / GraphQL / Scalars / MetatagScalar.php
diff --git a/web/modules/contrib/metatag/src/Plugin/GraphQL/Scalars/MetatagScalar.php b/web/modules/contrib/metatag/src/Plugin/GraphQL/Scalars/MetatagScalar.php
new file mode 100644 (file)
index 0000000..105ef53
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+
+namespace Drupal\metatag\Plugin\GraphQL\Scalars;
+
+use Drupal\graphql\Plugin\GraphQL\Scalars\Internal\StringScalar;
+
+/**
+ * Metatag module dummy type.
+ *
+ * Metatag module defines a custom data type that essentially is a string, but
+ * not called "string", which causes the GraphQL type system chokes.
+ *
+ * @GraphQLScalar(
+ *   id = "metatag",
+ *   name = "metatag",
+ *   type = "string"
+ * )
+ */
+class MetatagScalar extends StringScalar {
+}