Files
WMS/Modules/M3/Helpers/Helper.php
T

13 lines
303 B
PHP

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