PluginProbe
Extendify / 3.1.5
Extendify v3.1.5
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
extendify / app / QuickEdit / Schemas / Schema.php

Schema.php in Extendify 3.1.5, at app/QuickEdit/Schemas/Schema.php

22 lines 523 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Extendify\QuickEdit\Schemas;
4
5 defined('ABSPATH') || die('No direct access.');
6
7 interface Schema
8 {
9 /**
10 * @return array<int, array{key:string,control:string,label:string,options?:array}>
11 */
12 public function fields(): array;
13
14 /**
15 * @param array $block parse_blocks() shape
16 * @param string $fieldKey
17 * @param mixed $value
18 * @return array mutated block (also parse_blocks() shape)
19 */
20 public function apply(array $block, string $fieldKey, $value): array;
21 }
22