From 5adceea7e983e7be221e6411b4b8aeedf264408a Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Mon, 22 Aug 2016 19:53:32 +0300 Subject: [PATCH] Add function to get direct access to blueprint schema --- system/src/Grav/Common/Data/Blueprint.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/system/src/Grav/Common/Data/Blueprint.php b/system/src/Grav/Common/Data/Blueprint.php index d4e535146..a79881210 100644 --- a/system/src/Grav/Common/Data/Blueprint.php +++ b/system/src/Grav/Common/Data/Blueprint.php @@ -110,6 +110,18 @@ class Blueprint extends BlueprintForm return $this->blueprintSchema->filter($data); } + /** + * Return blueprint data schema. + * + * @return BlueprintSchema + */ + public function schema() + { + $this->initInternals(); + + return $this->blueprintSchema; + } + /** * Initialize validator. */