Closed (fixed)
Project:
Search API
Version:
8.x-1.x-dev
Component:
Framework
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 May 2016 at 08:52 UTC
Updated:
26 Nov 2016 at 09:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
drunken monkeyComment #3
sneha_surve commentedComment #4
sinn commentedAdded tests and information for hook_search_api_tracker_info_alter() and hook_search_api_displays_alter().
Actually hook_search_api_displays_alter() wasn't invoked. Fixed it in Drupal\search_api\Display\DisplayPluginManager.
Comment #5
borisson_80 cols. We should probably describe the array here. See search_api/src/Plugin/search_api/display/ViewsDisplayDeriver.php::getDisplaysForView
Comment #6
sinn commentedHave not found example of "describe the array here". Also display properties can be different so I added example of $displays variable for views from search_api_test_views module. Hope it is enough.
Comment #7
borisson_Looks great! Thanks!
Comment #8
drunken monkeyGood job, thanks!
I don't agree with Joris here, though: we never specify what the plugin definitions look like, for any of the other plugin types, so why should we do it here?
It's the same for all types (not just here, but throughout Core and contrib) anyways: look at the annotation and, possible, through the plugin base class; and apart from that, it can vary from plugin to plugin – no use getting more specific there (or, as it's now, just listing the complete definition for one example of a plugin).
Comment #10
drunken monkeyComment #11
borisson_you're right. Sorry for making you do unneeded work @sinn
Comment #13
drunken monkeyThanks for reviewing (and agreeing) – committed!
Thanks again, sinn!