Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
Shipping Class Reference
Inheritance diagram for Shipping:
Checkout Action RedirectLoginInterface Action AbstractAction ActionInterface

Public Member Functions

 execute ()
 
- Public Member Functions inherited from Checkout
 __construct (\Magento\Framework\App\Action\Context $context, \Magento\Customer\Model\Session $customerSession, CustomerRepositoryInterface $customerRepository, AccountManagementInterface $accountManagement)
 
 dispatch (RequestInterface $request)
 
 getCustomerBeforeAuthUrl ()
 
 getActionFlagList ()
 
 getLoginUrl ()
 
 getRedirectActionName ()
 
- Public Member Functions inherited from Action
 __construct (\Magento\Framework\App\Action\Context $context, \Magento\Customer\Model\Session $customerSession, CustomerRepositoryInterface $customerRepository, AccountManagementInterface $accountManagement)
 
- Public Member Functions inherited from Action
 __construct (Context $context)
 
 dispatch (RequestInterface $request)
 
 getActionFlag ()
 
- Public Member Functions inherited from AbstractAction
 __construct (Context $context)
 
 dispatch (RequestInterface $request)
 
 getRequest ()
 
 getResponse ()
 

Additional Inherited Members

- Data Fields inherited from ActionInterface
const FLAG_NO_DISPATCH = 'no-dispatch'
 
const FLAG_NO_POST_DISPATCH = 'no-postDispatch'
 
const FLAG_NO_DISPATCH_BLOCK_EVENT = 'no-beforeGenerateLayoutBlocksDispatch'
 
const PARAM_NAME_BASE64_URL = 'r64'
 
const PARAM_NAME_URL_ENCODED = 'uenc'
 
- Protected Member Functions inherited from Checkout
 _getCheckout ()
 
 _getState ()
 
 _getHelper ()
 
 _getCheckoutSession ()
 
 _validateMinimumAmount ()
 
- Protected Member Functions inherited from Action
 _preDispatchValidateCustomer ($redirect=true, $addErrors=true)
 
- Protected Member Functions inherited from Action
 _forward ($action, $controller=null, $module=null, array $params=null)
 
 _redirect ($path, $arguments=[])
 
- Protected Attributes inherited from Action
 $_customerSession
 
 $customerRepository
 
 $accountManagement
 
- Protected Attributes inherited from Action
 $_objectManager
 
 $_sessionNamespace
 
 $_eventManager
 
 $_actionFlag
 
 $_redirect
 
 $_view
 
 $_url
 
 $messageManager
 
- Protected Attributes inherited from AbstractAction
 $_request
 
 $_response
 
 $resultRedirectFactory
 
 $resultFactory
 

Detailed Description

Definition at line 12 of file Shipping.php.

Member Function Documentation

◆ execute()

execute ( )

Multishipping checkout shipping information page

Returns
ResponseInterface|void

Implements ActionInterface.

Definition at line 19 of file Shipping.php.

20  {
21  if (!$this->_validateMinimumAmount()) {
22  return;
23  }
24 
25  if (!$this->_getState()->getCompleteStep(State::STEP_SELECT_ADDRESSES)) {
26  return $this->_redirect('*/*/addresses');
27  }
28 
29  $this->_getState()->setActiveStep(State::STEP_SHIPPING);
30  $this->_view->loadLayout();
31  $this->_view->renderLayout();
32  }
_redirect($path, $arguments=[])
Definition: Action.php:167

The documentation for this class was generated from the following file: