<?php
/**
 * Copyright 2020 Adobe
 * All Rights Reserved.
 */
declare(strict_types=1);

namespace Magento\Catalog\Model\Config\Source\Web;

use Magento\Catalog\Model\Config\CatalogMediaConfig;

/**
 * Option provider for catalog media URL format system setting.
 */
class CatalogMediaUrlFormat implements \Magento\Framework\Data\OptionSourceInterface
{
    /**
     * Get a list of supported catalog media URL formats.
     *
     * @codeCoverageIgnore
     * @return array
     */
    public function toOptionArray(): array
    {
        return [
            [
                'value' => CatalogMediaConfig::IMAGE_OPTIMIZATION_PARAMETERS,
                'label' => __('Image optimization based on query parameters')
            ],
            ['value' => CatalogMediaConfig::HASH, 'label' => __('Unique hash per image variant (Legacy mode)')]
        ];
    }
}
