<?php


namespace WebpConverter\Settings\Page;

use WebpConverter\Settings\Option\OptionAbstract;

/**
 * {@inheritdoc}
 */
class CdnSettingsPage extends GeneralSettingsPage {

	const PAGE_SLUG = 'cdn';

	/**
	 * {@inheritdoc}
	 */
	public function get_slug(): string {
		return self::PAGE_SLUG;
	}

	/**
	 * {@inheritdoc}
	 */
	public static function get_label(): string {
		return __( 'CDN Settings', 'webp-converter-for-media' );
	}

	/**
	 * {@inheritdoc}
	 */
	public function get_template_vars(): array {
		return array_merge(
			parent::get_template_vars(),
			[
				'form_options'         => $this->plugin_data->get_settings_fields( OptionAbstract::FORM_TYPE_CDN ),
				'form_input_value'     => OptionAbstract::FORM_TYPE_CDN,
				'api_paths_url'        => null,
				'api_paths_nonce'      => null,
				'api_regenerate_url'   => null,
				'api_regenerate_nonce' => null,
			]
		);
	}
}
