Charts 5.x compatibility: charts_field_formatter dependency on deprecated service charts.settings

Created on 22 December 2023, about 1 year ago
Updated 17 April 2024, 8 months ago

Problem/Motivation

The charts_field_formatter module cannot be used with the latest stable Charts module on branch 5.x.

The charts.settings service no longer exists.

Proposed resolution

Remove dependency injection for the non-existent 'charts.settings' service and replace it with Drupal\Core\Config::get('charts.settings').

See the approach in the MR here: https://git.drupalcode.org/project/charts/-/merge_requests/10/diffs

See notes in #3239174: Cache must be rebuilt after saving charts configuration form which basically documents the exact same problem in the charts_api_example module bundled with the upstream.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇪🇨Ecuador jwilson3

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

Comments & Activities

Production build 0.71.5 2024