Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Problem
- When setting a CSS class in
$page['#attributes']['class']
viahook_page_build()
it is not output.
Goal
- Allow to set page classes on the $page render element.
Comment | File | Size | Author |
---|---|---|---|
#5 | drupal8.page-classes.5.patch | 843 bytes | sun |
drupal8.page-classes.0.patch | 789 bytes | sun | |
drupal.page-classes-D7-do-not-test.0.patch | 769 bytes | sun | |
Comments
Comment #1
brahmjeet789 CreditAttribution: brahmjeet789 commentedplease will you elaborate it more deeply .
Comment #2
sunI've clarified the issue summary.
Comment #3
sundrupal8.page-classes.0.patch queued for re-testing.
Comment #5
sunRe-rolled against HEAD.
Comment #6
sun#5: drupal8.page-classes.5.patch queued for re-testing.
Comment #6.0
sunUpdated issue summary.
Comment #9
joachim CreditAttribution: joachim commentedhook_page_build() no longer exists. Is this issue still relevant?
Comment #10
joelpittetHook doesn't exist any longer.
template_preprocess_html() may be where you want to do this or in the html.html.twig