Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Translate.php
Go to the documentation of this file.
1 <?php
11 
16 class Translate extends \Magento\Framework\App\Config\Value
17 {
23  const XML_PATH_INVALID_CACHES = 'dev/translate_inline/invalid_caches';
24 
30  public function afterSave()
31  {
32  $types = array_keys(
33  $this->_config->getValue(
34  self::XML_PATH_INVALID_CACHES,
35  \Magento\Store\Model\ScopeInterface::SCOPE_STORE
36  )
37  );
38  if ($this->isValueChanged()) {
39  $this->cacheTypeList->invalidate($types);
40  }
41 
42  return parent::afterSave();
43  }
44 }