90 \Psr\Log\LoggerInterface
$logger,
98 parent::__construct($context);
101 $this->_integrationService = $integrationService;
102 $this->_oauthService = $oauthService;
104 $this->_integrationData = $integrationData;
106 $this->_integrationCollection = $integrationCollection;
107 parent::__construct($context);
119 if ($this->
getRequest()->isXmlHttpRequest()) {
121 $this->jsonHelper->jsonEncode([
'_redirect' => $this->getUrl(
$path,
$arguments)])
136 $restoredFormData = $this->
_getSession()->getIntegrationData();
137 if ($restoredFormData) {
138 $resource = isset($restoredFormData[
'resource']) ? $restoredFormData[
'resource'] : [];
139 $this->_registry->register(
140 self::REGISTRY_KEY_CURRENT_RESOURCE,
141 [
'all_resources' => $restoredFormData[
'all_resources'],
'resource' =>
$resource]
restoreResourceAndSaveToRegistry()
_redirect($path, $arguments=[])
const REGISTRY_KEY_CURRENT_RESOURCE
__construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Registry $registry, \Psr\Log\LoggerInterface $logger, \Magento\Integration\Api\IntegrationServiceInterface $integrationService, \Magento\Integration\Api\OauthServiceInterface $oauthService, \Magento\Framework\Json\Helper\Data $jsonHelper, \Magento\Integration\Helper\Data $integrationData, \Magento\Framework\Escaper $escaper, \Magento\Integration\Model\ResourceModel\Integration\Collection $integrationCollection)
const REGISTRY_KEY_CURRENT_INTEGRATION
const PARAM_INTEGRATION_ID