Skip to content

Instantly share code, notes, and snippets.

@mneuhaus
Created January 28, 2017 23:34
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mneuhaus/c2ab57e4c5e73c34daa1eeeb3445b31c to your computer and use it in GitHub Desktop.
<?php
$structure = [
'type' => 'Form',
'id' => 'test',
'label' => 'Some form',
'children' => [
'default' => [
'type' => 'Sheet',
'label' => 'Sheet label',
'description' => 'Sheet description',
'shortDescription' => 'Short description',
'children' => [
'test' => [
'type' => 'Input',
'label' => 'Test field',
'default' => 'default value',
'placeholder' => 'Placeholder text',
'wizards' => [
'link' => [
'type' => 'Link'
]
]
],
'test' => [
'type' => 'Section',
'label' => 'My Section',
'children' => [
[
'type' => 'Object',
'label' => 'My Object Type',
'children' => [
'type' => 'Input',
'label' => 'Test field',
'default' => 'default value',
'placeholder' => 'Placeholder text',
'wizards' => [
'link' => [
'type' => 'Link'
]
]
]
]
]
]
]
]
]
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment