M3 Integration fixes

This commit is contained in:
Mark Gregory
2026-09-21 10:14:57 +01:00
parent 4af997c465
commit 6d60cbff84
5853 changed files with 79032 additions and 1825 deletions
+13
View File
@@ -0,0 +1,13 @@
<?php
use Modules\OTM\Support\ModuleInfo;
if (! function_exists('otm_feature_enabled')) {
/**
* Check if a feature is enabled in the config.
*/
function otm_feature_enabled(string $key): bool
{
return (bool) config(ModuleInfo::nameLower() . ".features.{$key}", false);
}
}