Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Order.php
Go to the documentation of this file.
1 <?php
7 
13 class Order extends \Magento\Backend\Block\Widget\Grid\Container
14 {
20  protected function _construct()
21  {
22  $this->_controller = 'adminhtml_order';
23  $this->_blockGroup = 'Magento_Sales';
24  $this->_headerText = __('Orders');
25  $this->_addButtonLabel = __('Create New Order');
26  parent::_construct();
27  if (!$this->_authorization->isAllowed('Magento_Sales::create')) {
28  $this->buttonList->remove('add');
29  }
30  }
31 
37  public function getCreateUrl()
38  {
39  return $this->getUrl('sales/order_create/start');
40  }
41 }
__()
Definition: __.php:13