Move optional config to submodule, since it installs automatically.

Created on 18 August 2022, about 2 years ago
Updated 16 May 2024, 5 months ago

Problem/Motivation

Thanks for this module, works great.

Linkit installs a default profile and image style that by itself is innocuous, but does clutter up the database/configuration and is unnecessary for the module to function.

Deleting the config is possible, but shouldn't necessary in the first place.

Steps to reproduce

Install linkit
See default configuration.

Alternatives I've considered

Run
drush cdel image.style.linkit_result_thumbnail
drush cdel linkit.linkit_profile.default

But I can't do this on sites I don't have access to, but do use my installation profile.

I could also write an update to delete the config

\Drupal::configFactory()->getEditable('image.style.linkit_result_thumbnail')->delete();
\Drupal::configFactory()->getEditable('linkit.linkit_profile.default')->delete();

But why?

Proposed resolution

Create new submodule with the example configuration.

Remaining tasks

Create new submodule with the example configuration.

User interface changes

Need to install submodule if you want the example config

API changes

None
This will not affect existing installations.

Data model changes

None

✨ Feature request
Status

Needs review

Version

7.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States trackleft2 Tucson, AZ πŸ‡ΊπŸ‡Έ

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024