Config Export to PHP array
This module extracts Drupal configuration elements and converts them into a PHP associative array. It provides a user-friendly interface to select configuration and generate a properly formatted PHP array ready for use in code, simplifying the process compared to Drupal's native YAML export.
πΊπ¦
This module is maintained by Ukrainian developers.Please consider supporting Ukraine in a fight for their freedom and safety of Europe.
The module is a utility that simplifies the extraction of configuration elements and their conversion into a PHP associative array. While Drupal's core provides configuration export functionality, it outputs data in YAML format, requiring additional conversion steps before it can be used in PHP code.
This module provides a user-friendly interface for selecting the configuration type and specific element, generating a properly formatted PHP array that is immediately ready for use. It ensures correct syntax formatting, including proper array key wrapping, colon-to-arrow replacement, trailing commas, and other necessary adjustments.