---
id: gk-gravityview-rest-template-settings-view-schema
title: "Filter - gk/gravityview/rest/template-settings/view-schema"
sidebar_label: "gk/gravityview/rest/template-settings/view-schema"
tags:
  - "3.12.0"
---

# Filter: gk/gravityview/rest/template-settings/view-schema

Filters a template setting's schema entry for the View it is about to be written to.

Runs on the Abilities / REST write path only. The source that owns a setting already receives the View context through its `schema_callable`; this filter is for another plugin widening a choice set it does not own (joined-form sort fields, for example) so the validator accepts what its editor UI offers.

## Parameters

| Name | Type | Description |
|------|------|-------------|
| $schema | `array` | Schema entry (<code>type</code>, <code>options</code>, <code>value</code>, ...). |
| $key | `string` | Setting key. |
| $prefix | `string` | Namespace prefix, <code>''</code> for core settings. |
| $view_id | `int` | View id. |

### Since

- 3.12.0

### Source

Defined in `src/REST/InspectorRoute.php` at line 7439

