Index.php 757 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\CheckoutAgreements\Controller\Adminhtml\Agreement;
  8. use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
  9. class Index extends \Magento\CheckoutAgreements\Controller\Adminhtml\Agreement implements HttpGetActionInterface
  10. {
  11. /**
  12. * @return void
  13. */
  14. public function execute()
  15. {
  16. $this->_initAction()->_addContent(
  17. $this->_view->getLayout()->createBlock(\Magento\CheckoutAgreements\Block\Adminhtml\Agreement::class)
  18. );
  19. $this->_view->getPage()->getConfig()->getTitle()->prepend(__('Terms and Conditions'));
  20. $this->_view->renderLayout();
  21. }
  22. }