21 $integrationId = (int)$this->
getRequest()->getParam(self::PARAM_INTEGRATION_ID);
24 $integrationData = $this->_integrationService->get($integrationId)->getData();
25 $this->_registry->register(self::REGISTRY_KEY_CURRENT_INTEGRATION, $integrationData);
27 $this->messageManager->addError($e->getMessage());
30 }
catch (\Exception $e) {
31 $this->_logger->critical($e);
32 $this->messageManager->addError(
__(
'Internal error. Check exception log for details.'));
37 $this->messageManager->addError(
__(
'Integration ID is not specified or is invalid.'));
43 $handleNodes = $this->_view->getLayout()->getUpdate()->getFileLayoutUpdatesXml()->xpath(
44 '//referenceBlock[@name="integration.activate.permissions.tabs"]/../@id' 47 if (is_array($handleNodes)) {
48 foreach ($handleNodes as $node) {
49 $handles[] = (string)$node;
52 $this->_view->loadLayout($handles);
53 $this->_view->renderLayout();
_redirect($path, $arguments=[])