Do not fetch configs in editable mode when just reading them.

Created on 16 July 2019, almost 6 years ago
Updated 18 April 2025, 7 days ago

Problem/Motivation

The following line is found on the cron implementation in the module.
This is used in read-only mode, no need to fetch editable configuration here.

// Export synonyms to files.
$conf = \Drupal::configFactory()->getEditable('search_api_synonym.settings')->get('cron');

Proposed resolution

Use the standard configuration (read-only one).

Remaining tasks

Patch, review, commit.

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

None.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇧🇬Bulgaria ndobromirov

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

Merge Requests

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