Config Export JSON
Security covered
This project allows you to export your configs as a JSON to be accessed by any other application / Framework
How export your config to JSON
$config = [
'customProject' => [
'key1' => 'value1',
'key2' => 'value2',
'key3' => 'value3',
'keyX' => 'valueX',
],
];
\Drupal::service("config_export_json.api")->add($config);JSON
You can access at:
https://yoursite.local/sites/default/files/config/config.json
P.s. If your prefer you can access your JSON at:
https://yoursite.local/api/config.json
Example:
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | Release date | |
|---|---|---|---|---|
| 8.x-1.9 | Stable | Sep 7, 2023 |