<?php
/**
 * Custom Background Colour Option Class
 *
 * @package errigal
 * @since 1.1.0
 */

namespace Errigal\Customiser;

defined( 'ABSPATH' ) || exit;

/**
 * This class is in charge of background colour customisation via customiser.
 *
 * @since 1.1.0
 */
class Errigal_Custom_Background_Colour_Option extends Errigal_Custom_Option_Base {
	/**
	 * Setting ID: WordPress: background_color.
	 *
	 * @since 1.1.0
	 *
	 * @link https://codex.wordpress.org/Theme_Customization_API
	 *
	 * @var string
	 */
	private const ID_WP_BACKGROUND_COLOR = 'background_color';

	/**
	 * Gets controls args.
	 *
	 * @since 1.1.0
	 *
	 * @return array
	 */
	public function get_controls_args() {
		return array(
			self::CONTROLS_TO_UPDATE => array(
				self::ID_WP_BACKGROUND_COLOR => array(
					self::CUSTOMISE_ARGS_CONTROL => array(
						self::CONTROL_PRIORITY => self::CONTROL_PRIORITY_APPEARANCE_BACKGROUND_COLOUR,
					),
				),
			),
		);
	}
}
