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

13 lines
324 B
PHP

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