Files
esun3d/app/code/Mageplaza/Blog/Controller/Adminhtml/Post/History.php
T
2026-09-15 10:35:56 +08:00

73 lines
1.7 KiB
PHP
Executable File

<?php
/**
* Mageplaza
*
* NOTICE OF LICENSE
*
* This source file is subject to the Mageplaza.com license that is
* available through the world-wide-web at this URL:
* https://www.mageplaza.com/LICENSE.txt
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this extension to newer
* version in the future.
*
* @category Mageplaza
* @package Mageplaza_Blog
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
* @license https://www.mageplaza.com/LICENSE.txt
*/
namespace Mageplaza\Blog\Controller\Adminhtml\Post;
use Magento\Backend\App\Action\Context;
use Magento\Framework\Controller\ResultInterface;
use Magento\Framework\Registry;
use Magento\Framework\View\Result\LayoutFactory;
use Mageplaza\Blog\Controller\Adminhtml\Post;
use Mageplaza\Blog\Model\PostFactory;
/**
* Class Products
* @package Mageplaza\Blog\Controller\Adminhtml\Post
*/
class History extends Post
{
/**
* @var LayoutFactory
*/
protected $resultLayoutFactory;
/**
* Products constructor.
*
* @param Context $context
* @param PostFactory $productFactory
* @param Registry $registry
* @param LayoutFactory $resultLayoutFactory
*/
public function __construct(
Context $context,
Registry $registry,
PostFactory $productFactory,
LayoutFactory $resultLayoutFactory
) {
parent::__construct($productFactory, $registry, $context);
$this->resultLayoutFactory = $resultLayoutFactory;
}
/**
* Save action
*
* @return ResultInterface
*/
public function execute()
{
$this->initPost(true);
return $this->resultLayoutFactory->create();
}
}