mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-08 01:37:36 +00:00
45 lines
1.1 KiB
PHP
45 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
*
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
namespace Magento\Sales\Controller\Adminhtml\Invoice\AbstractInvoice;
|
|
|
|
abstract class Grid extends \Magento\Backend\App\Action
|
|
{
|
|
/**
|
|
* Authorization level of a basic admin session
|
|
*
|
|
* @see _isAllowed()
|
|
*/
|
|
const ADMIN_RESOURCE = 'Magento_Sales::sales_invoice';
|
|
|
|
/**
|
|
* @var \Magento\Framework\View\Result\LayoutFactory
|
|
*/
|
|
protected $resultLayoutFactory;
|
|
|
|
/**
|
|
* @param \Magento\Backend\App\Action\Context $context
|
|
* @param \Magento\Framework\View\Result\LayoutFactory $resultLayoutFactory
|
|
*/
|
|
public function __construct(
|
|
\Magento\Backend\App\Action\Context $context,
|
|
\Magento\Framework\View\Result\LayoutFactory $resultLayoutFactory
|
|
) {
|
|
parent::__construct($context);
|
|
$this->resultLayoutFactory = $resultLayoutFactory;
|
|
}
|
|
|
|
/**
|
|
* Order grid
|
|
*
|
|
* @return \Magento\Framework\View\Result\Layout
|
|
*/
|
|
public function execute()
|
|
{
|
|
return $this->resultLayoutFactory->create();
|
|
}
|
|
}
|