28 lines
608 B
PHP
28 lines
608 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace Esun\Wiki\Controller\Adminhtml\Homepage;
|
|
|
|
use Magento\Backend\App\Action;
|
|
use Magento\Framework\View\Result\PageFactory;
|
|
|
|
class Edit extends Action
|
|
{
|
|
public const ADMIN_RESOURCE = 'Esun_Wiki::homepage';
|
|
|
|
public function __construct(
|
|
Action\Context $context,
|
|
private readonly PageFactory $pageFactory
|
|
) {
|
|
parent::__construct($context);
|
|
}
|
|
|
|
public function execute()
|
|
{
|
|
$page = $this->pageFactory->create();
|
|
$page->getConfig()->getTitle()->prepend(__('Edit Wiki Homepage'));
|
|
|
|
return $page;
|
|
}
|
|
}
|