Kriuchko
6/6/2019 - 3:15 PM

Custom variables


$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$variable = $objectManager->create('Magento\Variable\Model\Variable');

$value = $variable->loadByCode('disable_filters_state')->getPlainValue();
$htmlvalue = $variable->loadByCode('disable_filters_state')->getHtmlValue();