Index.php 902 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Paypal\Controller\Adminhtml\Billing\Agreement;
  8. use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
  9. class Index extends \Magento\Paypal\Controller\Adminhtml\Billing\Agreement implements HttpGetActionInterface
  10. {
  11. /**
  12. * Authorization level of a basic admin session
  13. *
  14. * @see _isAllowed()
  15. */
  16. const ADMIN_RESOURCE = 'Magento_Paypal::billing_agreement_actions_view';
  17. /**
  18. * Billing agreements
  19. *
  20. * @return void
  21. */
  22. public function execute()
  23. {
  24. $this->_view->loadLayout();
  25. $this->_setActiveMenu('Magento_Paypal::paypal_billing_agreement');
  26. $this->_view->getPage()->getConfig()->getTitle()->prepend(__('Billing Agreements'));
  27. $this->_view->renderLayout();
  28. }
  29. }