#2511548: Add a "context" array variable to all theme hooks and "#context" array property to all elements to provide optional contextual data will be introducing the concept of "context" into the rendering/theming pipeline.

For security reasons, the "context" variable is removed prior to rendering the template.

Change record: https://www.drupal.org/node/2971707

CommentFileSizeAuthor
#5 3082665-5.patch7.45 KBsanduhrs
#4 3082665-4.patch6.96 KBmarkhalliwell

Comments

markcarver created an issue. See original summary.

markhalliwell’s picture

Title: Rename "context" variable used in template » Use attributes instead of standalone variables in template

Actually, the template should really be using an Attributes object for those values, not independent standalone markup/variables in the template.

markhalliwell’s picture

Title: Use attributes instead of standalone variables in template » Use container with theme hook suggestions and attributes instead of custom template and variables

For that matter, it really doesn't even need its own theme hook.

markhalliwell’s picture

Status: Active » Needs review
StatusFileSize
new6.96 KB
sanduhrs’s picture

StatusFileSize
new7.45 KB

Reroll.

  • sanduhrs committed 1a880f0 on 8.x-2.x authored by markcarver
    Issue #3082665 by markcarver, sanduhrs: Use container with theme hook...
sanduhrs’s picture

Status: Needs review » Fixed

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.