Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Status.php
Go to the documentation of this file.
1 <?php
7 
15 class Status extends \Magento\Backend\Block\Widget\Grid\Container
16 {
22  protected function _construct()
23  {
24  $this->_controller = 'adminhtml_order_status';
25  $this->_headerText = __('Order Statuses');
26  $this->_addButtonLabel = __('Create New Status');
27  $this->buttonList->add(
28  'assign',
29  [
30  'label' => __('Assign Status to State'),
31  'onclick' => 'setLocation(\'' . $this->getAssignUrl() . '\')',
32  'class' => 'add'
33  ]
34  );
35  parent::_construct();
36  }
37 
43  public function getCreateUrl()
44  {
45  return $this->getUrl('sales/order_status/new');
46  }
47 
53  public function getAssignUrl()
54  {
55  return $this->getUrl('sales/order_status/assign');
56  }
57 }
__()
Definition: __.php:13