Initial commit: Vendor Sales Report Magento 2 module
This commit is contained in:
43
Controller/Adminhtml/Report/Index.php
Normal file
43
Controller/Adminhtml/Report/Index.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
namespace Shopkeeper\VendorSalesReport\Controller\Adminhtml\Report;
|
||||
|
||||
use Magento\Backend\App\Action;
|
||||
use Magento\Backend\App\Action\Context;
|
||||
use Magento\Framework\View\Result\PageFactory;
|
||||
|
||||
class Index extends Action
|
||||
{
|
||||
const ADMIN_RESOURCE = 'Shopkeeper_VendorSalesReport::report';
|
||||
|
||||
/**
|
||||
* @var PageFactory
|
||||
*/
|
||||
protected $resultPageFactory;
|
||||
|
||||
/**
|
||||
* @param Context $context
|
||||
* @param PageFactory $resultPageFactory
|
||||
*/
|
||||
public function __construct(
|
||||
Context $context,
|
||||
PageFactory $resultPageFactory
|
||||
) {
|
||||
parent::__construct($context);
|
||||
$this->resultPageFactory = $resultPageFactory;
|
||||
}
|
||||
|
||||
/**
|
||||
* Index action
|
||||
*
|
||||
* @return \Magento\Backend\Model\View\Result\Page
|
||||
*/
|
||||
public function execute()
|
||||
{
|
||||
/** @var \Magento\Backend\Model\View\Result\Page $resultPage */
|
||||
$resultPage = $this->resultPageFactory->create();
|
||||
$resultPage->setActiveMenu('Shopkeeper_VendorSalesReport::report');
|
||||
$resultPage->getConfig()->getTitle()->prepend(__('Vendor Sales Report'));
|
||||
|
||||
return $resultPage;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user