Files
WMS/Modules/Pricing/Helpers/Helper.php
T
2026-06-12 15:11:51 +01:00

14 lines
319 B
PHP

<?php
use Modules\Pricing\Support\ModuleInfo;
if (! function_exists('pricing_feature_enabled')) {
/**
* Check if a feature is enabled in the config.
*/
function pricing_feature_enabled(string $key): bool
{
return (bool) config(ModuleInfo::nameLower().".features.{$key}", false);
}
}