Astra_Update_Global_Palette::get_output_schema()
Get output schema.
Description
Return
(array)
Source
File: inc/abilities/customizer/globals/colors/class-astra-update-global-palette.php
public function get_output_schema() {
return $this->build_output_schema(
array(
'palette_id' => array(
'type' => 'string',
'description' => 'Updated palette ID.',
),
'is_current' => array(
'type' => 'boolean',
'description' => 'Whether this palette is the currently active one.',
),
'colors' => array(
'type' => 'object',
'description' => 'Updated palette colors (indices 0-8).',
),
'color_labels' => array(
'type' => 'object',
'description' => 'Labels for each color index.',
),
'applied_preset' => array(
'type' => 'string',
'description' => 'Name of the preset applied, if any.',
),
)
);
}
Expand full source code Collapse full source code View on Trac