Empty content block message in overview is missing a space

Created on 14 January 2025, 7 days ago

Problem/Motivation

The empty message of the content block table is missing a space in between the two sentences (for users that have access to create a block). It reads:

There are no content blocks available.Add a content block.

Steps to reproduce

Visit the content block overview on a site with no content blocks with a user that is allowed to create blocks.

Proposed resolution

This is not super trivial because the two sentences come from two different places. The first is from the view configuration, i.e. the display.default.display_options.empty.area_text_custom.content key in views.view.block_content.yml. The second one comes from \Drupal\block_content\Plugin\views\area\ListingEmpty::render(). They are just rendered right after another, so there is no space in between. But as it stands now each could be rendered without the other, so there is no natural place to put the space.

One way to fix this would be to move the first sentence into \Drupal\block_content\Plugin\views\area\ListingEmpty::render() and remove the custom text area before it.

Remaining tasks

User interface changes

The missing space as described above is rectified.

Introduced terminology

-

API changes

-

Data model changes

-

Release notes snippet

-

🐛 Bug report
Status

Active

Version

11.0 🔥

Component

block.module

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

Production build 0.71.5 2024