SilverStripe\Admin\LeftAndMain::getSchemaResponse
Generate schema for the given form based on the X-Formschema-Request header value
Signature
protected function getSchemaResponse(string
$schemaID,
[Form
$form = NULL,
[ValidationResult
$errors = NULL,
[array
$extraData = ]]] )
Parameters
$schemaID
—
string
- ID for this schema. Required.
$form
—
object
- Required for 'state' or 'schema' response
$errors
—
SilverStripe\ORM\ValidationResult
- Required for 'error' response
$extraData
—
array
- Any extra data to be merged with the schema response
Returns
- HTTPResponse