Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Additional.php
Go to the documentation of this file.
1 <?php
7 
13 {
19  public function isInProductionMode()
20  {
21  return $this->_appState->getMode() === \Magento\Framework\App\State::MODE_PRODUCTION;
22  }
23 
27  public function getCleanImagesUrl()
28  {
29  return $this->getUrl('*/*/cleanImages');
30  }
31 
35  public function getCleanMediaUrl()
36  {
37  return $this->getUrl('*/*/cleanMedia');
38  }
39 
43  public function getCleanStaticFilesUrl()
44  {
45  return $this->getUrl('*/*/cleanStaticFiles');
46  }
47 }