Configuration Reference
Extension configuration
The extension configuration is stored in the TYPO3 Extension Configuration
(Install Tool) and read by the service. Defaults are applied in code when a
value is not set. Access the full, normalized config programmatically via
ToonHelper::getConfig().
Settings
| Key | Values | Default | Applies to |
|---|---|---|---|
| enabled | boolean | 1 | encode (passthrough when off) |
| indent | int (>= 1) | 2 | encode |
| delimiter | comma / tab / pipe | comma | encode |
| key_folding | off / safe | off | encode (spec §13.4) |
| flatten_depth | int (-1 = unbounded) | -1 | encode (key folding) |
| strict | boolean | 1 | decode (spec §14) |
| expand_paths | off / safe | off | decode (spec §13.4) |
| show_default_example | boolean | 1 | Playground (prefill on first load) |
Normalized configuration array
ToonHelper::getConfig() returns the values mapped for the spec engine:
[
'enabled' => true, // bool
'indent' => 2, // int (>= 1)
'delimiter' => ',', // ',' | "\t" | '|'
'key_folding' => 'off', // 'off' | 'safe'
'flatten_depth' => null, // int | null (null = unbounded)
'strict' => true, // bool
'expand_paths' => 'off', // 'off' | 'safe'
]
Copied!
Accessing configuration
use RRP\T3Toon\Utility\ToonHelper;
$config = ToonHelper::getConfig();
$indent = $config['indent'];
$merged = ToonHelper::getConfigMerged(['indent' => 4]);
Copied!
Configuration via Extension Manager
Navigate to Admin Tools > Settings > Extension Configuration and select T3Toon – Token-Efficient Data Format for TYPO3 AI.
EncodeOptions and DecodeOptions (per-call)
See Options (EncodeOptions & DecodeOptions) for overriding encoding/decoding per call instead of changing global configuration.