Files
2026-09-15 10:35:56 +08:00

29 lines
757 B
PHP

<?php
declare(strict_types=1);
namespace Esun\AiMascotCampaign\Controller\Adminhtml\Participant;
use Magento\Backend\App\Action;
use Magento\Backend\App\Action\Context;
use Magento\Framework\View\Result\Page;
use Magento\Framework\View\Result\PageFactory;
class Index extends Action
{
public const ADMIN_RESOURCE = 'Esun_AiMascotCampaign::participants';
public function __construct(Context $context, private readonly PageFactory $pageFactory)
{
parent::__construct($context);
}
public function execute(): Page
{
$page = $this->pageFactory->create();
$page->setActiveMenu(self::ADMIN_RESOURCE);
$page->getConfig()->getTitle()->prepend(__('AI Mascot Participants'));
return $page;
}
}