Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
NewAction.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
10 
12 {
18  public function execute()
19  {
21  $this->_view->loadLayout();
22  $this->_setActiveMenu('Magento_Integration::system_integrations');
23  $this->_addBreadcrumb(__('New Integration'), __('New Integration'));
24  $this->_view->getPage()->getConfig()->getTitle()->prepend(__('New Integration'));
26  $restoredIntegration = $this->_getSession()->getIntegrationData();
27  if ($restoredIntegration) {
28  $this->_registry->register(self::REGISTRY_KEY_CURRENT_INTEGRATION, $restoredIntegration);
29  $this->_getSession()->setIntegrationData([]);
30  }
31  $this->_view->renderLayout();
32  }
33 }
__()
Definition: __.php:13
_addBreadcrumb($label, $title, $link=null)