Astra_Get_Global_Palette::get_output_schema()

Get output schema.


Description


Return

(array)


Source

File: inc/abilities/customizer/globals/colors/class-astra-get-global-palette.php

	public function get_output_schema() {
		return $this->build_output_schema(
			array(
				'active_palette'    => array(
					'type'        => 'object',
					'description' => 'Active palette details including palette_id, is_current flag, and colors with hex values and labels.',
				),
				'current_palette'   => array(
					'type'        => 'string',
					'description' => 'Current active palette ID.',
				),
				'available_presets' => array(
					'type'        => 'object',
					'description' => 'Available color presets with name and color values.',
				),
				'total_presets'     => array(
					'type'        => 'integer',
					'description' => 'Total number of available presets.',
				),
				'all_palettes'      => array(
					'type'        => 'object',
					'description' => 'All palettes (palette_1 through palette_4) with their colors when no specific palette is requested.',
				),
			)
		);
	}

User Contributed Notes

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