Provide a way to know the dashboard context to a block even if not context aware

Created on 27 November 2024, 29 days ago

Problem/Motivation

Provide a way to know the dashboard context to a block even if not context aware.
I'm not even sure how we will be able to use this, but has been useful in explorations on how we could e.g. provide theme suggestions for blocks.

Proposed resolution

Inject #dashboard id in the block render array.

Remaining tasks

Review.

User interface changes

None.

API changes

If blocks are used in a dashboard, they will have a "#dashboard" value that could be used e.g. in preprocess_block.

Data model changes

None.

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇪🇸Spain penyaskito Seville 💃, Spain 🇪🇸, UTC+2 🇪🇺

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