28 lines
758 B
PHP
28 lines
758 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Esun\MultiLocaleTranslation\Controller\Adminhtml\Queue;
|
|
|
|
use Magento\Backend\App\Action;
|
|
use Magento\Framework\View\Result\Page;
|
|
use Magento\Framework\View\Result\PageFactory;
|
|
|
|
class Index extends Action
|
|
{
|
|
public const ADMIN_RESOURCE = 'Esun_MultiLocaleTranslation::translation_queue';
|
|
|
|
public function __construct(Action\Context $context, private readonly PageFactory $pageFactory)
|
|
{
|
|
parent::__construct($context);
|
|
}
|
|
|
|
public function execute(): Page
|
|
{
|
|
$page = $this->pageFactory->create();
|
|
$page->setActiveMenu('Esun_MultiLocaleTranslation::translation_queue');
|
|
$page->getConfig()->getTitle()->prepend(__('Translation Queue'));
|
|
return $page;
|
|
}
|
|
}
|