| 1 |
<?php |
| 2 |
|
| 3 |
namespace IvyForms\Services\Template; |
| 4 |
|
| 5 |
// phpcs:disable PSR1.Files.SideEffects |
| 6 |
if (!defined('ABSPATH')) { |
| 7 |
exit; // Exit if accessed directly |
| 8 |
} |
| 9 |
|
| 10 |
/** |
| 11 |
* Class TemplateDefaults |
| 12 |
* Holds default configuration values for form templates |
| 13 |
* |
| 14 |
* @package IvyForms\Services\Template |
| 15 |
*/ |
| 16 |
class TemplateDefaults |
| 17 |
{ |
| 18 |
/** |
| 19 |
* Default integration settings for new forms |
| 20 |
* |
| 21 |
* @var array<string, array<string, mixed>> |
| 22 |
*/ |
| 23 |
public const DEFAULT_INTEGRATION_SETTINGS = [ |
| 24 |
'wpdatatables' => [ |
| 25 |
'enabled' => true |
| 26 |
] |
| 27 |
]; |
| 28 |
|
| 29 |
/** |
| 30 |
* Get default integration settings |
| 31 |
* |
| 32 |
* @return array<string, array<string, mixed>> |
| 33 |
*/ |
| 34 |
public static function getDefaultIntegrationSettings(): array |
| 35 |
{ |
| 36 |
return self::DEFAULT_INTEGRATION_SETTINGS; |
| 37 |
} |
| 38 |
} |
| 39 |
|