Skip to content

Commit 32347f3

Browse files
committed
added metaSchema() method
1 parent bcc7b79 commit 32347f3

File tree

2 files changed

+716
-0
lines changed

2 files changed

+716
-0
lines changed

src/JsonEditorWidget.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,17 @@ public function run()
163163

164164
parent::run();
165165
}
166+
167+
/**
168+
* Returns JsonSchema meta-schema
169+
*
170+
* @return mixed|null
171+
*/
172+
public static function metaSchema()
173+
{
174+
$metaSchema = file_get_contents(\Yii::getAlias(__DIR__.'/meta_schema.json'));
175+
return Json::decode($metaSchema);
176+
}
166177
}
167178

168179
?>

0 commit comments

Comments
 (0)