29 lines
787 B
PHP
29 lines
787 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Esun\MultiLocaleTranslation\Controller\Adminhtml\Log;
|
|
|
|
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_MultiLocaleTranslation::translation_log';
|
|
|
|
public function __construct(Context $context, private readonly PageFactory $pageFactory)
|
|
{
|
|
parent::__construct($context);
|
|
}
|
|
|
|
public function execute(): Page
|
|
{
|
|
$page = $this->pageFactory->create();
|
|
$page->setActiveMenu('Esun_MultiLocaleTranslation::translation_log');
|
|
$page->getConfig()->getTitle()->prepend(__('Translation API Log'));
|
|
return $page;
|
|
}
|
|
}
|