Problem

  • When setting a CSS class in $page['#attributes']['class'] via hook_page_build() it is not output.

Goal

  • Allow to set page classes on the $page render element.
Files: 
CommentFileSizeAuthor
#5 drupal8.page-classes.5.patch843 bytessun
PASSED: [[SimpleTest]]: [MySQL] 37,262 pass(es).
[ View ]
drupal8.page-classes.0.patch789 bytessun
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch drupal8.page-classes.0.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]
drupal.page-classes-D7-do-not-test.0.patch769 bytessun
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch drupal.page-classes-D7-do-not-test.0.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

Comments

please will you elaborate it more deeply .

I've clarified the issue summary.

Issue tags:-needs backport to D7

drupal8.page-classes.0.patch queued for re-testing.

Status:Needs review» Needs work
Issue tags:+needs backport to D7

The last submitted patch, drupal8.page-classes.0.patch, failed testing.

Status:Needs work» Needs review
StatusFileSize
new843 bytes
PASSED: [[SimpleTest]]: [MySQL] 37,262 pass(es).
[ View ]

Re-rolled against HEAD.

Issue tags:-needs backport to D7

#5: drupal8.page-classes.5.patch queued for re-testing.

Issue summary:View changes

Updated issue summary.