Sitemap.php 891 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sitemap\Controller\Adminhtml;
  7. /**
  8. * XML sitemap controller
  9. */
  10. abstract class Sitemap extends \Magento\Backend\App\Action
  11. {
  12. /**
  13. * Authorization level of a basic admin session
  14. *
  15. * @see _isAllowed()
  16. */
  17. const ADMIN_RESOURCE = 'Magento_Sitemap::sitemap';
  18. /**
  19. * Init actions
  20. *
  21. * @return $this
  22. */
  23. protected function _initAction()
  24. {
  25. // load layout, set active menu and breadcrumbs
  26. $this->_view->loadLayout();
  27. $this->_setActiveMenu(
  28. 'Magento_Sitemap::catalog_sitemap'
  29. )->_addBreadcrumb(
  30. __('Catalog'),
  31. __('Catalog')
  32. )->_addBreadcrumb(
  33. __('XML Sitemap'),
  34. __('XML Sitemap')
  35. );
  36. return $this;
  37. }
  38. }