Astra_List_Font_Families::get_output_schema()

Get output schema.


Description


Return

(array)


Source

File: inc/abilities/customizer/globals/typography/class-astra-list-font-families.php

	public function get_output_schema() {
		return $this->build_output_schema(
			array(
				'fonts'      => array(
					'type'        => 'array',
					'description' => 'List of font families.',
					'items'       => array(
						'type'       => 'object',
						'properties' => array(
							'name'     => array(
								'type'        => 'string',
								'description' => 'Font family name.',
							),
							'category' => array(
								'type'        => 'string',
								'description' => 'Font category (sans-serif, serif, display, handwriting, monospace).',
							),
							'variants' => array(
								'type'        => 'array',
								'items'       => array( 'type' => 'string' ),
								'description' => 'Available font weight variants.',
							),
						),
					),
				),
				'total'      => array(
					'type'        => 'integer',
					'description' => 'Total number of fonts returned.',
				),
				'statistics' => array(
					'type'        => 'object',
					'description' => 'Font count statistics by category.',
				),
				'filters'    => array(
					'type'        => 'object',
					'description' => 'Applied filter values.',
				),
			)
		);
	}

User Contributed Notes

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