Skip to content

Instantly share code, notes, and snippets.

@lerni
Last active May 24, 2019 09:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lerni/582f500d3d9223ada4b7e9c155189b77 to your computer and use it in GitHub Desktop.
Save lerni/582f500d3d9223ada4b7e9c155189b77 to your computer and use it in GitHub Desktop.
diff --git a/view/Requirements.php b/view/Requirements.php
index a39d0e998..d7004b9a8 100644
--- a/view/Requirements.php
+++ b/view/Requirements.php
@@ -419,6 +419,13 @@ class Requirements implements Flushable {
return self::backend()->debug();
}
+ /**
+ * Output ld+json
+ * https://github.com/lerni/silverstripe3-ldjsonrequirement/blob/master/composer.json
+ */
+ public static function ldJsonScript($script, $uniquenessID = null) {
+ self::backend()->ldJsonScript($script, $uniquenessID);
+ }
}
/**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment