Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
View.php
Go to the documentation of this file.
1 <?php
8 
10 {
16  const ADMIN_RESOURCE = 'Magento_Paypal::billing_agreement_actions_view';
17 
23  public function execute()
24  {
25  $agreementModel = $this->_initBillingAgreement();
26 
27  if ($agreementModel) {
28  $this->_view->loadLayout();
29  $this->_setActiveMenu('Magento_Paypal::paypal_billing_agreement');
30  $this->_view->getPage()->getConfig()->getTitle()->prepend(
31  sprintf("#%s", $agreementModel->getReferenceId())
32  );
33  $this->_view->getPage()->getConfig()->getTitle()->prepend(__('Billing Agreements'));
34  $this->_view->renderLayout();
35  return;
36  }
37 
38  $this->_redirect('paypal/*/');
39  return;
40  }
41 }
__()
Definition: __.php:13