Index.php 1012 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Copyright © 2016 Ihor Vansach (ihor@magefan.com). All rights reserved.
  4. * See LICENSE.txt for license details (http://opensource.org/licenses/osl-3.0.php).
  5. *
  6. * Glory to Ukraine! Glory to the heroes!
  7. */
  8. namespace Magefan\Blog\Controller\Adminhtml\Import;
  9. /**
  10. * Blog available imports list controller
  11. */
  12. class Index extends \Magento\Backend\App\Action
  13. {
  14. /**
  15. * Start available import execute
  16. * @return \Magento\Framework\Controller\ResultInterface
  17. */
  18. public function execute()
  19. {
  20. $this->_view->loadLayout();
  21. $this->_setActiveMenu('Magefan_Blog::import');
  22. $title = __('Blog Import');
  23. $this->_view->getPage()->getConfig()->getTitle()->prepend($title);
  24. $this->_addBreadcrumb($title, $title);
  25. $this->_view->renderLayout();
  26. }
  27. /**
  28. * Check is allowed access
  29. *
  30. * @return bool
  31. */
  32. protected function _isAllowed()
  33. {
  34. return $this->_authorization->isAllowed('Magefan_Blog::import');
  35. }
  36. }