33 lines
721 B
PHP
33 lines
721 B
PHP
<?php
|
|
/**
|
|
* @package Plumrocket_CookieConsentPro
|
|
* @copyright Copyright (c) 2025 Plumrocket Inc.
|
|
* @license https://plumrocket.com/license End-user License Agreement
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Plumrocket\CookieConsentPro\Model\Config\Source;
|
|
|
|
use Plumrocket\Base\Model\OptionSource\AbstractSource;
|
|
|
|
/**
|
|
* @since 1.0.1
|
|
*/
|
|
class ConsentInitiator extends AbstractSource
|
|
{
|
|
public const INITIATOR_CUSTOMER = 'customer';
|
|
public const INITIATOR_GPC = 'gpc';
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
public function toOptionHash(): array
|
|
{
|
|
return [
|
|
self::INITIATOR_CUSTOMER => __('Customer'),
|
|
self::INITIATOR_GPC => __('GPC Signal'),
|
|
];
|
|
}
|
|
}
|