Closed (fixed)
Project:
Views (for Drupal 7)
Version:
8.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Jul 2012 at 07:59 UTC
Updated:
4 Jan 2014 at 02:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
merlinofchaos commentedHere are some additions:
Create a basic interface that we want to use for plugins, and then our PluginBase mostly just implements that interface.
As BojanZ and I discussed,for Query we also want an interface based upon query type. So we'd have a SQLQueryInterface and an EFQQueryInterface.
Also I think the namspace goes lib/Drupal/views/Plugin/Query doesn't it?
Comment #2
dawehnerPlease don't take this to serious, just backuping some work and hey at least the query is runned.
Comment #3
damiankloip commentedI know you have said don't look into this too much, and I'm not :). Just one thing though, incase it's been missed; Don't we need to namespace the Plugins further? So inside the Plugins directory, we need the views plugins to be in the views namespace/subdir (lib/Drupal/views/Plugins/views/..)?
I.e. Drupal\views\Plugin\Query\QueryInterface will need to become Drupal\views\Plugin\views\Query\QueryInterface, or something like....
Comment #4
damiankloip commentedI have updated dawehners patch from #2 to reflect the new plugin naming.
Comment #5
damiankloip commentedHere is another updated patch, This will hopefully get a bulk of the boring work out of this conversion. I have converted all of the handlers and plugins into the new Plugin folder format. I haven't thought a great deal about alot of the class names right now. So please chime in with stuff like this, as the point of this patch is as a bit of a catalyst.
There are currently argument plugins and argument handlers that have been converted. Currently the argument handlers are still in a /Plugins/views/handlers directory. So ideas on the two different argument types welcome.
I have not tested this yet, so please don't expect this to work properly yet!
Comment #6
damiankloip commentedWith the existing plugins removed. I have not had a chance to look at views_ui and views_wizard plugins yet.
Comment #7
damiankloip commentedLooks like this patch might start getting a bit out of hand here. I have created a sandbox for this conversion instead: http://drupal.org/sandbox/damiankloip/1685040
Comment #8
dawehnerWe finished the work today, so this issue somehow needs review but i guess we will simply wait for the AnotationsDiscovery patch in core.
Comment #10
aspilicious commentedWell while working on some patches: http://drupalcode.org/sandbox/damiankloip/1685040.git/shortlog/refs/head... I started to understand the system (and views :p).
I'm still very new to this but as I understand we removed hook_views_plugins.
So I guess the plugins.inc file is incorrect? or obsolete?
And what about hook_views_plugin_alter than?
Comment #11
dawehnerYou really want to be sure that the plugin instance got created on the actual $view object.
Some answers to the other questions:
Thanks for your help!
Comment #12
eclipsegc commentedI've been wanting to remove the alter logic from the HookDiscovery class and make an AlterDiscoveryDecorator class instead. This could wrap any discovery/decorator and allow alteration to be nested at the appropriate level within the system. This should be a really simple patch and is probably better off happening sooner than later.
Eclipse
Comment #13
dawehnerLinking the issue #1705702: Provide a way to allow modules alter plugin definitions
Comment #14
damiankloip commentedNow that we have got plugins into views, closing for now. If anyone disagrees, feel free to reopen.