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  public function execute()
17  {
18  if (!($agreement = $this->_initAgreement())) {
19  return;
20  }
21  $this->_view->loadLayout();
22  $this->_view->getPage()->getConfig()->getTitle()->prepend(__('Billing Agreements'));
23  $this->_view->getPage()->getConfig()->getTitle()->prepend(
24  __('Billing Agreement # %1', $agreement->getReferenceId())
25  );
26  $navigationBlock = $this->_view->getLayout()->getBlock('customer_account_navigation');
27  if ($navigationBlock) {
28  $navigationBlock->setActive('paypal/billing_agreement/');
29  }
30  $this->_view->renderLayout();
31  }
32 }
__()
Definition: __.php:13