44 lines
1.1 KiB
PHP
44 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace Emizentech\Banner\Controller\Adminhtml\banner;
|
|
|
|
class NewAction extends \Magento\Backend\App\Action
|
|
{
|
|
/**
|
|
* @var \Magento\Backend\Model\View\Result\Forward
|
|
*/
|
|
protected $resultForwardFactory;
|
|
|
|
/**
|
|
* @param \Magento\Backend\App\Action\Context $context
|
|
* @param \Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory
|
|
*/
|
|
public function __construct(
|
|
\Magento\Backend\App\Action\Context $context,
|
|
\Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory
|
|
) {
|
|
$this->resultForwardFactory = $resultForwardFactory;
|
|
parent::__construct($context);
|
|
}
|
|
|
|
/**
|
|
* Forward to edit
|
|
*
|
|
* @return \Magento\Backend\Model\View\Result\Forward
|
|
*/
|
|
public function execute()
|
|
{
|
|
/** @var \Magento\Backend\Model\View\Result\Forward $resultForward */
|
|
$resultForward = $this->resultForwardFactory->create();
|
|
return $resultForward->forward('edit');
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
protected function _isAllowed()
|
|
{
|
|
return true;
|
|
}
|
|
}
|