Refactor config compilation into Service

Created on 6 April 2023, almost 2 years ago

Problem/Motivation

Now that I know that modules like https://www.drupal.org/project/content_model_documentation β†’ exist and reuse the data we compile here, I think it's time to refactor our configuration compilation into a reusable service. This will give us a chance to reduce the complexity of our recursive logic and make it easier to be in control over the resulting data.

If we can provide APIs for other modules to extend the results that would be even better.

This feels like it would take a lot of effort, but I'm going to try to hack up a solution real quick to prove this idea, then come back to reevaluate how long this is going to take.

Proposed resolution

Convert config processing logic in the .module file to a service. Call the service in the .module file.

Remaining tasks

Quick hack to move things around then come back to see what it will take to finish

User interface changes

API changes

Maybe some methods that can be overridden to be in control what the data looks like when it finishes.

Data model changes

Highly likely

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States cosmicdreams Minneapolis/St. Paul

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024