EBT blocks compatibility issue @DrupalCore 11.2.0 - new hook system

Created on 12 September 2025, 30 days ago

Problem/Motivation

After update system to latest Drupal Core, EBT blocks stopped working properly.

Content that was composed with EBT blocks stopped render and only warnings was present.

I did investigation and did some experiments.
Key result information of diagnostics is that inside EBT template are not any variables present.
Wrapper html inside templates is rendered but without any variables.
{{ dump() }} output nothing.

So wrapper classes (for EBT_text) do look like: "_none contextual-region block--type-ebt-text block ebt-block ebt-block- block- plugin-id-"

Steps to reproduce

Use Drupal Core@ 11.2.0 with EBT blocks.

Proposed resolution

So I decided to refactor hooks for ebt_core.
Files changed/added: Hook/EbtCoreHooks.php, ebt_core.module, ebt_core.services.yml

Remaining tasks

After my changes warnings are gone but solution isnt perfect. It seems that some CSS/JS arent injected with some EBT blocks. I have plenty different EBT blocks and loaded drupal instance before and after update so could do some tests.

🐛 Bug report
Status

Active

Version

1.4

Component

Code

Created by

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.

No activities found.

Production build 0.71.5 2024