label_display configuration should not be translatable

Created on 21 September 2025, 1 day ago

Problem/Motivation

📌 Make Block config entities fully validatable Fixed accidentally made the label_display configuration value translatable. It is not a user-facing value, however, it should always be the string "visible" regardless of the configuration language.

It is currently just configured via a checkbox, so there is an attempt to change this into a boolean type over at 🐛 Display title setting has wrong schema type Needs work , but that requires updating all exported block configuration so is a complex issue.

Also, as was brought up there, there is an attempt to add a second possible value (or counting the empty value "0" a third value) over at Add option for visually-hidden block titles Needs work which would make having it as a string actually make sense.

So this issue is just about fixing the regression introduced by 📌 Make Block config entities fully validatable Fixed so that the value does not get incorrectly translated.

Steps to reproduce

  1. Install a site in German
  2. Export configuration

Observe that the exported blocks will have a "label_display" value of "sichtbar" instead of "visible".

Proposed resolution

  1. Change the schema type from "label" back to "string"
  2. To not lose the intent of what 📌 Make Block config entities fully validatable Fixed was trying to achieve add a validation constraint that makes sure that only "0" and "visible" are allowed as values

Remaining tasks

User interface changes

-

Introduced terminology

-

API changes

-

Data model changes

The label_display configuration is now (again) of type "string" with a proper constraint. (Since 📌 Make Block config entities fully validatable Fixed did not include a change notice for the change from "string" to "label" I assume this issue also does not need a change notice.)

Release notes snippet

🐛 Bug report
Status

Active

Version

11.0 🔥

Component

base system

Created by

🇩🇪Germany tstoeckler Essen, Germany

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.

  • Merge request !13287Make block's label_display not translatable → (Open) created by tstoeckler
  • Pipeline finished with Failed
    1 day ago
    Total: 652s
    #604554
  • Pipeline finished with Failed
    about 9 hours ago
    Total: 5168s
    #605270
  • Pipeline finished with Failed
    about 9 hours ago
    Total: 635s
    #605332
Production build 0.71.5 2024