WP_REST_View_Config_Controller::get_form_schema
Returns the schema for the form configuration object.
Method of the class: WP_REST_View_Config_Controller{}
No Hooks.
Returns
array. Schema properties for the form configuration.
Usage
// protected - for code of main (parent) or child class $result = $this->get_form_schema();
Changelog
| Since 7.1.0 | Introduced. |
WP_REST_View_Config_Controller::get_form_schema() WP REST View Config Controller::get form schema code WP 7.1
protected function get_form_schema() {
return array(
'layout' => $this->get_form_layout_schema(),
'fields' => array(
'type' => 'array',
'items' => $this->get_form_field_schema(),
),
);
}