| Current Path : /var/www/www.indacotrentino.com/www/app/code/Amasty/Base/Model/Config/Backend/ |
| Current File : /var/www/www.indacotrentino.com/www/app/code/Amasty/Base/Model/Config/Backend/Menu.php |
<?php
/**
* @author Amasty Team
* @copyright Copyright (c) Amasty (https://www.amasty.com)
* @package Magento 2 Base Package
*/
namespace Amasty\Base\Model\Config\Backend;
class Menu extends \Magento\Framework\App\Config\Value implements
\Magento\Framework\App\Config\Data\ProcessorInterface
{
/**
* @return $this
*/
public function afterSave()
{
if ($this->isValueChanged()) {
$this->cacheTypeList->invalidate(\Magento\Framework\App\Cache\Type\Block::TYPE_IDENTIFIER);
}
return parent::afterSave();
}
/**
* Process config value
*
* @param string $value
* @return string
*/
public function processValue($value)
{
return $value;
}
}