WP_REST_View_Config_Controller::get_form_schema(): array

In this article

Returns the schema for the form configuration object.

Return

array Schema properties for the form configuration.

Source

protected function get_form_schema() {
	return array(
		'layout' => $this->get_form_layout_schema(),
		'fields' => array(
			'type'  => 'array',
			'items' => $this->get_form_field_schema(),
		),
	);
}

Changelog

VersionDescription
7.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.