init
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Esun\PromotionPopup\Model\Config\Source;
|
||||
|
||||
use Magento\Framework\Data\OptionSourceInterface;
|
||||
|
||||
class Audience implements OptionSourceInterface
|
||||
{
|
||||
public const GUEST = 'guest';
|
||||
public const ALL = 'all';
|
||||
|
||||
public function toOptionArray(): array
|
||||
{
|
||||
return [
|
||||
['value' => self::GUEST, 'label' => __('Guests Only')],
|
||||
['value' => self::ALL, 'label' => __('All Visitors')],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user