Hide empty description for an administrative block

Created on 18 February 2019, over 6 years ago
Updated 27 January 2023, over 2 years ago

Problem/Motivation

Expected behavior:
If no description is given for an adminstrative block the description value should be "false", thus enabling themer to easily hide description if necessary
Current behavior:
The description value is an empty markup string. This does make it complicated to hide the description and even the default implementation of admin-block-content.html.twig in /core/modules/system/templates is not working correctly actually.

Proposed resolution

Check if description is empty (php empty) instead of checking if description is set (php isset)

Remaining tasks

  • Review

Example

The paragraphs module does not provide a description for Paragraph settings (admin/config/content/paragraphs) in paragraphs.links.menu.yml. So one would expect to have "false" on description, but instead there is an empty markup string.

🐛 Bug report
Status

Fixed

Version

10.1

Component
Base 

Last updated about 3 hours ago

Created by

🇩🇪Germany stefan.korn Jossgrund

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.

Production build 0.71.5 2024