Additional.php 908 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Backend\Block\Cache;
  7. /**
  8. * @api
  9. * @since 100.0.2
  10. */
  11. class Additional extends \Magento\Backend\Block\Template
  12. {
  13. /**
  14. * Check if application is in production mode
  15. *
  16. * @return bool
  17. */
  18. public function isInProductionMode()
  19. {
  20. return $this->_appState->getMode() === \Magento\Framework\App\State::MODE_PRODUCTION;
  21. }
  22. /**
  23. * @return string
  24. */
  25. public function getCleanImagesUrl()
  26. {
  27. return $this->getUrl('*/*/cleanImages');
  28. }
  29. /**
  30. * @return string
  31. */
  32. public function getCleanMediaUrl()
  33. {
  34. return $this->getUrl('*/*/cleanMedia');
  35. }
  36. /**
  37. * @return string
  38. */
  39. public function getCleanStaticFilesUrl()
  40. {
  41. return $this->getUrl('*/*/cleanStaticFiles');
  42. }
  43. }