* @link https://www.oxidmodule.com */ declare(strict_types=1); namespace D3\ManufacturerInformation\Modules\Core; use D3\ManufacturerInformation\Application\Model\Constants; use OxidEsales\EshopCommunity\Internal\Container\ContainerFactory; use OxidEsales\EshopCommunity\Internal\Framework\Module\Facade\ModuleSettingServiceInterface; use Psr\Container\ContainerExceptionInterface; use Psr\Container\NotFoundExceptionInterface; class ManufacturerConfig extends ManufacturerConfig_parent { /** * @param string $sName * * @return bool * @throws ContainerExceptionInterface * @throws NotFoundExceptionInterface */ public function d3GetBoolModuleSettingByName(string $sName): bool { $moduleSettingService = ContainerFactory::getInstance()->getContainer()->get(ModuleSettingServiceInterface::class); return $moduleSettingService->getBoolean(Constants::OXID_MODULE_ID.$sName, Constants::OXID_MODULE_ID); } }