Problem/Motivation
When creating inline blocks via layout builder and making them reusable, the admin title assigned to the block is rendered both in the layout builder preview and also when the node is rendered. There is nto an option to hide the title.
Steps to reproduce
In layout builder, create an inline block, make it reusable, give it an admin title, place it in a section. It will have the title rendered, with no option to remove it. Add the same block again and it won't have the title rendered. A workaround I'm doing is to remove the block I first created and adding it again just so it won't show the title. This is only happening when I create the block and make it reusable. When I reuse the block, the title is not rendered.
Proposed resolution
When creating reusable inoline blocks via layout builder, do not render the block title.
Comments
Comment #2
gwvoigtComment #3
gwvoigtI've just realized that to reproduce this issue you have to be using this patch: https://www.drupal.org/project/drupal/issues/2999491. It is a fairly popular issue that allows setting blocks as reusable while creating them in layout builder. I tried to take a look but could not figure it out, seems like when you place an inline block and select Reusable and place it, it sets $form['settings']['label_display']['#default_value'] = FALSE; but when I edit the Block after that, it is set to TRUE.