Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Address.php
Go to the documentation of this file.
1 <?php
7 
12 {
16  public function dispatch(\Magento\Framework\App\RequestInterface $request)
17  {
18  if (!$this->_getCheckout()->getCustomer()->getId()) {
19  return $this->_redirect('customer/account/login');
20  }
21  return parent::dispatch($request);
22  }
23 
29  protected function _getCheckout()
30  {
31  return $this->_objectManager->get(\Magento\Multishipping\Model\Checkout\Type\Multishipping::class);
32  }
33 
39  protected function _getState()
40  {
41  return $this->_objectManager->get(\Magento\Multishipping\Model\Checkout\Type\Multishipping\State::class);
42  }
43 }
_redirect($path, $arguments=[])
Definition: Action.php:167
dispatch(\Magento\Framework\App\RequestInterface $request)
Definition: Address.php:16