Posted by tostinni on November 18, 2012 at 1:58am
20 followers
Issue Summary
Some patches have been rolled against the Drupal 8 Twig sandbox, and some Views patches have been committed to the sandbox. In our effort to get these patches/commits out of the sandbox and into core, follow each of the linked issues to find the status of work in the sandbox including preprocess funtions in views module files and/or .html.twig files in core/themes/stark/templates/views/.
.html.twig files need to be in core/modules/views/templates, with any existing templates moved out of core/themes/stark/templates/views.
Remaining
Template file conversions
- #1843740: Convert views/templates/views-exposed-form.tpl.php to twig
- #1843742: Convert views/templates/views-more.tpl.php to twig
- #1843744: Convert views/templates/views-view.tpl.php to twig
- #1843746: Convert views/templates/views-view-field.tpl.php to Twig
- #1843748: Convert views/templates/views-view-fields.tpl.php to twig
- #1843750: Convert views/templates/views-view-grid.tpl.php to twig
- #1843752: Convert views/templates/views-view-grouping.tpl.php to twig
- #1843754: Convert views/templates/views-view-list.tpl.php to twig
- #1843758: Convert views/templates/views-view-row-rss.tpl.php to twig
- #1843760: Convert views/templates/views-view-rss.tpl.php to twig
- #1843762: Convert views/templates/views-view-summary.tpl.php to twig
- #1843764: Convert views/templates/views-view-summary-unformatted.tpl.php to twig Assigned to: jwilson3
- #1843766: Convert views/templates/views-view-table.tpl.php to twig
- #1843770: Convert views/templates/views-view-unformatted.tpl.php to twig
Theme function conversions
- #1912604: Convert theme_views_mini_pager to twig
- #1912600: Convert theme_views_form_views_form to twig
- #1912606: Remove theme_views_view_grouping function
- #1963764: Convert theme_views_view_mapping_test() to Twig Assigned to: widukind
- theme_views_view_field() will be removed in #1843746: Convert views/templates/views-view-field.tpl.php to Twig
Related Issues
#1898472: [meta] Convert views_ui module to Twig
#1757550: [meta] Convert core PHPTemplate files and theme functions to Twig
Comments
#1
This is rough patch of all the views (not views_ui because didn't know the path they should go to)
Some of this may be better than others, but may give someone a headstart.
#2
All patches were moved to their respective non-meta issues.
#3
Please tag everything related with views with VDC, so people can find it.
#4
Have now tagged all the separate issues with VDC as per #3.
#5
I've started committing these as part of #1898470: [meta] Convert views module to Twig at SANDcamp 2013. My apologies now for some of the messy commits - joelpittet has done a fantastic job, among many others.
#6
Can you explain why you are committing issues that were marked "needs review" and not yet marked "reviewed & tested by the community?"
#7
I had him commit directly and we should have stuck to posting patches.
#8
Are we going to get a proper issue for these? We don't get too much exposure to these and I definitely want to review them before they get committed, rather than being committed in one super patch.
#9
@damiankloip #8 As discussed just now in IRC, we'll plan to move the linked issues above to the core queue so that we don't submit a super patch.
#10
Tagging
#11
Moving this to the core queue, marking #1898470: [meta] Convert views module to Twig as duplicate.
#12
#13
As discussed with @dawehner we will remove
@ingroup views_templatesfrom all Views and Views UI .html.twig templates. If you are working on patches on any of the sub-issues that have this line in the template(s) it would be a huge help if you can reroll to remove that line. Thanks!