public function isVisible(\Magento\Config\Model\Config\Structure\AbstractElement $element, $scope)
{
if ($element->getAttribute('if_module_enabled') && !$this->moduleManager->isOutputEnabled($element->getAttribute('if_module_enabled'))) {
return false;
}
$showInScope = [ContainerScopeInterface::SCOPE_DEFAULT => $element->getAttribute('showInDefault'), ContainerScopeInterface::SCOPE_CONTAINERS => $element->getAttribute('showInContainer'), ContainerScopeInterface::SCOPE_STORE_CONTAINERS => $element->getAttribute('showInStore')];
if ($this->storeManager->isSingleStoreMode()) {
$result = !$element->getAttribute('hide_in_single_store_mode') && array_sum($showInScope);
return $result;
}
return !empty($showInScope[$scope]);
}