Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
NoCookies.php
Go to the documentation of this file.
1 <?php
8 
10 {
16  public function execute()
17  {
18  $redirect = new \Magento\Framework\DataObject();
19  $this->_eventManager->dispatch(
20  'controller_action_nocookies',
21  ['action' => $this, 'redirect' => $redirect]
22  );
23 
24  $url = $redirect->getRedirectUrl();
25  if ($url) {
26  $this->getResponse()->setRedirect($url);
27  } elseif ($redirect->getRedirect()) {
28  $this->_redirect($redirect->getPath(), $redirect->getArguments());
29  } else {
30  $this->_view->loadLayout(['default', 'noCookie']);
31  $this->_view->renderLayout();
32  }
33 
34  $this->getRequest()->setDispatched(true);
35  }
36 }
_redirect($path, $arguments=[])
Definition: Action.php:167
elseif(isset( $params[ 'redirect_parent']))
Definition: iframe.phtml:17