Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-config
Model
Config
Backend
Translate.php
Go to the documentation of this file.
1
<?php
10
namespace
Magento\Config\Model\Config\Backend
;
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
}
Magento\Framework\App\Config\Value\isValueChanged
isValueChanged()
Definition:
Value.php:84
Magento\Config\Model\Config\Backend
Magento\Config\Model\Config\Backend\Store
Definition:
Store.php:16
Magento
Magento\Config\Model\Config\Backend\Translate
Definition:
Translate.php:16
Magento\Config\Model\Config\Backend\Translate\afterSave
afterSave()
Definition:
Translate.php:30
Magento\Config\Model\Config\Backend\Translate\XML_PATH_INVALID_CACHES
const XML_PATH_INVALID_CACHES
Definition:
Translate.php:23