BlockContentType should implement EntityDescriptionInterface

Created on 18 June 2025, 6 days ago

Problem/Motivation

In πŸ“Œ Remove BlockContentController::Add Needs work we are moving block content to use generic entity stuff for routing, including the add page

Block content has custom code to sort its bundles by label in the current controller for the add page BlockContentController::addPage

πŸ“Œ Fix \Drupal\Core\Entity\Controller\EntityController so bundles are sorted by label and not ID Needs work will add this sorting to the generic EntityController::addPage but only for config entity types that implement EntityDescriptionInterface, plus this interface is required to add the description as well.

Steps to reproduce

N/A

Proposed resolution

Make BlockContentTypeInterface extend EntityDescriptionInterface
Remove BlockContentTypeInterface::getDescription
Implement setDescription

Remaining tasks

Do it

API changes

BlockContentTypeInterface extends EntityDescriptionInterface - I don't think this warrants a CR.

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component

block_content.module

Created by

πŸ‡¦πŸ‡ΊAustralia acbramley

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