mirror of
https://github.com/getgrav/grav.git
synced 2026-02-10 00:27:46 +01:00
Add function to get direct access to blueprint schema
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user