Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
views.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Oct 2012 at 22:56 UTC
Updated:
29 Jul 2014 at 21:17 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tim.plunkettThis is a patch on top of the sandbox.
Comment #2
xjmNice diffstat.
Comment #3
dawehnerThis looks great so far.
I'm not sure whether the theme.inc should be part of the templates folder, but they are certainly related.
Comment #4
xjmMaybe it's too early in the morning and I'm confused, but aren't these specifying different paths?
Comment #5
xjmMaybe double-check manually that everything still works. ;)
Comment #6
tim.plunkettMoving back. I did mess it up.
Comment #7
tim.plunkettThis still needs changes. the /templates part should be autodiscovered
Comment #8
tim.plunkettHolding off on this to avoid the changes to the plugin managers.
Comment #9
merlinofchaos commentedOne reason that theme.inc is in the same folder as the templates is that, in the past, you couldn't have separate include directories for the two files in hook_theme() -- meaning that preprocesses and such must be in the .module file or a file that is always included and cannot be automatically included by the theme system. I have no idea if this was ever changed for D8, however.
It's also nice to have the preprocesses right there with the templates, IMO.
Comment #10
tim.plunkettYeah, I think what will happen is just
So, they'll stay together.
Comment #11
tim.plunkettComment #12
tim.plunkettRerolled.
Comment #13
tim.plunkettThe current system makes it prohibitively hard to provide your own theme functions for plugins. In addition, we have all of this custom code for a feature that I have yet to find a usage of in contrib: the ability for a plugin to declare custom templates PER THEME. It's not something that hook_theme supports, and Views shouldn't go out of its way to add custom functionality like that.
In addition, this switches spaces to underscores in keys that are used in annotations.
Comment #14
tim.plunkettWe no longer need the $base stuff in views_ui_theme().
Comment #15
dawehnerAbsolute nice cleanup! The changes are looking perfect, beside one small change.
Can we let the register_theme bool in? Afaik drupal.org is using this flag for project module.
Comment #16
tim.plunkettWe can, but we should document it and switch it to register_theme.
Comment #17
tim.plunkettOkay, I added the default value to PluginManager, and a comment. I also moved some more stuff around in views_themes when I actually tried using it from contrib.
The interdiff is with -w to hide the indents.
Comment #18
dawehnerFrom the code side this looks RTBC now, considering that the docu will be done in bulk.
Comment #22
tim.plunkett#17: vdc-1805980-17.patch queued for re-testing.
Comment #24
tim.plunkettComment #25
damiankloip commentedThis looks good to me. Nice clean up.
Comment #26
webchickCommitted and pushed to 8.x. Thanks!