Change label for custom blocks

Created on 3 May 2017, over 7 years ago
Updated 17 February 2024, 10 months ago

When you add custom block as inline entity reference a generic "Add new custom block" button is shown.
It would be useful to add the name of the block type.
For example "add new test123 block" for custom blocks of type test123.

I'm trying to achieve so, but i don't know exactly where to work in code. I found that in src/Plugin/Field/FieldWidget/InlineEntityFormComplex.php at line 449 there is
'#value' => $this->t('Add new @type_singular', ['@type_singular' => $labels['singular']]),

The label for the singular seems to be the bundle. Anyone has idea where to change the behaviour?

Feature request
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

🇮🇹Italy sanci Milan

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States dcam

    Due to limited developer time old feature requests for IEF are being closed. If you still have a need for this functionality, then you may feel free to reopen the issue.

Production build 0.71.5 2024