init
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Esun\PromotionPopup\Model\Config\Source;
|
||||
|
||||
use Magento\Framework\Data\OptionSourceInterface;
|
||||
|
||||
class Frequency implements OptionSourceInterface
|
||||
{
|
||||
public const ALWAYS = 'always';
|
||||
public const SESSION = 'session';
|
||||
public const DAILY = 'daily';
|
||||
public const CAMPAIGN = 'campaign';
|
||||
|
||||
public function toOptionArray(): array
|
||||
{
|
||||
return [
|
||||
['value' => self::DAILY, 'label' => __('Once per Day')],
|
||||
['value' => self::SESSION, 'label' => __('Once per Session')],
|
||||
['value' => self::CAMPAIGN, 'label' => __('Once per Campaign Version')],
|
||||
['value' => self::ALWAYS, 'label' => __('Every Eligible Page View')],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user