Index.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Integration\Controller\Adminhtml\Integration;
  8. use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
  9. class Index extends \Magento\Integration\Controller\Adminhtml\Integration implements HttpGetActionInterface
  10. {
  11. /**
  12. * Integrations grid.
  13. *
  14. * @return void
  15. */
  16. public function execute()
  17. {
  18. $unsecureIntegrationsCount = $this->_integrationCollection->addUnsecureUrlsFilter()->getSize();
  19. if ($unsecureIntegrationsCount > 0) {
  20. // @codingStandardsIgnoreStart
  21. $this->messageManager->addNotice(__('Warning! Integrations not using HTTPS are insecure and potentially expose private or personally identifiable information')
  22. // @codingStandardsIgnoreEnd
  23. );
  24. }
  25. $this->_view->loadLayout();
  26. $this->_setActiveMenu('Magento_Integration::system_integrations');
  27. $this->_addBreadcrumb(__('Integrations'), __('Integrations'));
  28. $this->_view->getPage()->getConfig()->getTitle()->prepend(__('Integrations'));
  29. $this->_view->renderLayout();
  30. }
  31. }