Fix BlockClassController compatibility with D11

Created on 31 October 2025, 1 day ago

Problem/Motivation

The latest build pipelines of the 4.0.x branch seem to be failing with multiples jobs and errors, see:
https://git.drupalcode.org/project/block_class/-/pipelines/480442

These issues and errors mostly seem to be caused by API changes and the compatibility with D11.

In particular:
The page /admin/block-class/help returned through the BlockClassController class currently crashed with WSOD on D11, since system_get_module_admin_tasks() is deprecated as of D10.2.x.

Steps to reproduce

Run build pipeline for 4.0.x at:
https://git.drupalcode.org/project/block_class/-/pipelines

Proposed resolution

Fix reported PHPCS and PHPUNIT issues.

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇫🇷France dydave

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

Merge Requests

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