15 class Encrypted extends \Magento\Framework\App\Config\Value implements
16 \Magento\Framework\App\Config\Data\ProcessorInterface
40 \
Magento\Framework\
Data\Collection\AbstractDb $resourceCollection =
null,
67 \
Magento\Framework\Encryption\EncryptorInterface::class
78 $value = (string)$this->getValue();
79 if (!empty(
$value) && ($decrypted = $this->_encryptor->decrypt(
$value))) {
80 $this->setValue($decrypted);
91 $this->_dataSaveAllowed =
false;
92 $value = (string)$this->getValue();
95 $this->_dataSaveAllowed =
true;
96 $encrypted = $this->_encryptor->encrypt(
$value);
97 $this->setValue($encrypted);
99 $this->_dataSaveAllowed =
true;
111 return $this->_encryptor->decrypt(
$value);
elseif(isset( $params[ 'redirect_parent']))
__construct(\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\App\Config\ScopeConfigInterface $config, \Magento\Framework\App\Cache\TypeListInterface $cacheTypeList, \Magento\Framework\Encryption\EncryptorInterface $encryptor, \Magento\Framework\Model\ResourceModel\AbstractResource $resource=null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection=null, array $data=[])