Problem/Motivation

Followup from #2636074: forum-list.html.twig replies are double escaped.

template_preprocess_forums() generates a lot of HTML, making it hard to override in a custom theme.

Proposed resolution

Rewrite the preprocess function to provide data to the templates. Allow the templates to generate HTML based on the provided data (eg:

Remaining tasks

TBD

User interface changes

None.

API changes

None.

Data model changes

None.

Comments

mikeker created an issue. See original summary.

larowlan’s picture

Sounds good to me

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.0-beta1 was released on March 2, 2016, which means new developments and disruptive changes should now be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.