This commit is contained in:
2026-09-15 10:35:56 +08:00
commit 782f8ea7aa
4086 changed files with 631288 additions and 0 deletions
@@ -0,0 +1,27 @@
<?php
namespace Esun\MegaMenu\Model\Config\Source;
use Magento\Eav\Model\Entity\Attribute\Source\AbstractSource;
class MegaMenuType extends AbstractSource
{
public const PRODUCT = 'product';
public const ICON_CATEGORY = 'icon_category';
public function toOptionArray(): array
{
return [
['value' => self::PRODUCT, 'label' => __('Product Mega Menu')],
['value' => self::ICON_CATEGORY, 'label' => __('Icon Category Mega Menu')]
];
}
public function getAllOptions(): array
{
if ($this->_options === null) {
$this->_options = $this->toOptionArray();
}
return $this->_options;
}
}