Download & Extend

[meta] Convert views module to Twig

Project:Drupal core
Version:8.x-dev
Component:views.module
Category:task
Priority:normal
Assigned:Unassigned
Status:active
Issue tags:Twig, VDC

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

Theme function conversions

#1898472: [meta] Convert views_ui module to Twig
#1757550: [meta] Convert core PHPTemplate files and theme functions to Twig

Comments

#1

Status:active» needs work

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.

AttachmentSizeStatusTest resultOperations
views-to-twig-rough.patch17.64 KBIgnored: Check issue status.NoneNone

#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

My apologies now for some of the messy commits

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

Are we going to get a proper issue for these?

@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

Issue tags:+Twig

Tagging

#11

Title:[META] Views conversion to Twig» [META] Convert views module to Twig
Project:Drupal 8 Twig Sandbox» Drupal core
Version:<none>» 8.x-dev
Component:Twig templates conversion (front-end branch)» views.module
Status:needs work» active

Moving this to the core queue, marking #1898470: [meta] Convert views module to Twig as duplicate.

#12

Title:[META] Convert views module to Twig» [meta] Convert views module to Twig

#13

As discussed with @dawehner we will remove @ingroup views_templates from 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!

nobody click here