Refactor configuration handling

Created on 19 April 2024, 10 months ago
Updated 22 April 2024, 10 months ago

Problem/Motivation

This module allows to add own social media by using the social_media.add_more_link event. This is a great idea which brings great flexibility.

However the configuration for these added social media is saved together with the basic configuration in social_media.settings. This does work, but the additional social media is not handled correct from a configuration point of view. There is no configuration schema in social_media.schema.yml for these new social media. Though this is no big deal in terms of functionality, the configuration is not valid in drupal terms.

My proposal would be to split configuration from social media module and other modules that extend via the social_media.add_more_link event. That way one could have a valid config in one's own module. This would also allow to provide just the config for the new social media in your own module (via config/install) and leave the social_media.settings alone. This would allow to provide a custom (or contrib module) that just adds the new social media without tinkering with the social_media modules settings.

I will provide changes in a new branch for this and create a merge request.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇩🇪Germany stefan.korn Jossgrund

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024