Add support for creating/loading settings entities in specific languages

Created on 26 July 2024, about 1 month ago
Updated 28 August 2024, 11 days ago

Problem/Motivation

Currently, Drupal\eck_site_settings\SettingsRepositoryInterface::getSetting() doesn't support creating or loading setting entities in specific languages. Only the Twig extension automatically loads the current translation of the setting.

Proposed resolution

Add a $context array to Drupal\eck_site_settings\SettingsRepositoryInterface::getSetting(), allowing code to pass a langcode to load/create the setting with, while at the same time allowing other modules to add field values.

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇪Belgium DieterHolvoet Brussels

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