Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Agreement.php
Go to the documentation of this file.
1 <?php
7 
11 
12 abstract class Agreement extends Action
13 {
19  const ADMIN_RESOURCE = 'Magento_CheckoutAgreements::checkoutagreement';
20 
26  protected $_coreRegistry = null;
27 
33  public function __construct(
34  Context $context,
35  Registry $coreRegistry
36  ) {
37  $this->_coreRegistry = $coreRegistry;
38  parent::__construct($context);
39  }
40 
46  protected function _initAction()
47  {
48  $this->_view->loadLayout();
49  $this->_setActiveMenu(
50  'Magento_CheckoutAgreements::sales_checkoutagreement'
51  )->_addBreadcrumb(
52  __('Sales'),
53  __('Sales')
54  )->_addBreadcrumb(
55  __('Checkout Conditions'),
56  __('Checkout Terms and Conditions')
57  );
58  return $this;
59  }
60 }
__()
Definition: __.php:13
__construct(Context $context, Registry $coreRegistry)
Definition: Agreement.php:33