Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ReturnAction.php
Go to the documentation of this file.
1 <?php
8 
10 {
16  public function execute()
17  {
18  $session = $this->_objectManager->get(\Magento\Checkout\Model\Session::class);
19  //TODO: some actions with order
20  if ($session->getLastRealOrderId()) {
21  $this->_redirect('checkout/onepage/success');
22  }
23  }
24 }
_redirect($path, $arguments=[])
Definition: Action.php:167