Problem/Motivation
It is helpful to have the block title automatically set so users don't have to think about it every time they want to add a component. But this can make layout builder impossible to use when preview mode is turned off, because all the labels are the same. Even with the patch from this issue applied, multiple blocks of the same type are indistinguishable. We should offer users the option to edit the label, while still keeping a default value and forcing it to be hidden.
Proposed resolution
Create a configuration form where site maintainers can opt into keeping the title field editable.
User interface changes
Add a configuration form for the module.
API changes
Include the configuration service inside the FormAlter class.
Data model changes
Include a configuration schema.
| Comment | File | Size | Author |
|---|
Issue fork inline_block_title_automatic-3355205
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
jayhuskinsComment #3
elberHi can you tell me more details about it please?
Comment #5
jayhuskinsBasically some websites may want to provide a default title, but still allow users to edit it. Like this:

Here is the proposed configuration form that allows site builder to opt into this feature.

Comment #6
jayhuskinsIf we really want to make this a robust feature, we could create a permission so that some users can edit this field and other can't.
And as discussed in this issue it would be nice to be make the default title configurable. But at a baseline I think we should provide the option.