Form.php 836 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Customer\Controller\Address;
  8. use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
  9. class Form extends \Magento\Customer\Controller\Address implements HttpGetActionInterface
  10. {
  11. /**
  12. * Address book form
  13. *
  14. * @return \Magento\Framework\Controller\ResultInterface
  15. */
  16. public function execute()
  17. {
  18. /** @var \Magento\Framework\View\Result\Page $resultPage */
  19. $resultPage = $this->resultPageFactory->create();
  20. $navigationBlock = $resultPage->getLayout()->getBlock('customer_account_navigation');
  21. if ($navigationBlock) {
  22. $navigationBlock->setActive('customer/address');
  23. }
  24. return $resultPage;
  25. }
  26. }