Closed (fixed)
Project:
Custom Solr Search
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
24 Jun 2016 at 05:23 UTC
Updated:
27 Jun 2016 at 10:13 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dishabhadra commentedComment #3
dishabhadra commentedCreated a Block Plugin for solr core.
But configuration are not done.
Comment #4
swarad07Helping out with the issue of configurations not saving, it was a small issue of not using getConfiguration().
Comment #5
dishabhadra commentedI applied #4 and #3 patches. They worked fine.
I created a build function and attaching the patch for the same.
Comment #6
piyuesh23 commentedGood start with the patch. Adding few comments inline below:
We should be more descriptive here while defining what this block does.
Should be renamed to custom_solr_search_result_block
Classname should be CustomSolrSearchResultBlock.
No point of having $servers = array('all' => 'All') above since we overriding it below.
Can we stick to one standard of defining the arrays. Its defined using PHP7 convention here [] while the result array on L#68 has array().
I personally would stick with array().
Using the plural form would be more correct semantically ($args).
We should be injecting the service rather than trying to call it directly here.
The class should implement ContainerFactoryPluginInterface.
Comment #7
piyuesh23 commentedComment #8
piyuesh23 commentedFixing the issues mentioned above.
Next steps:
Create tpl file & hook_theme for the dummy theme in use right now.
Comment #9
piyuesh23 commentedAdding patch to handle view layer.
Comment #10
piyuesh23 commentedComment #11
piyuesh23 commentedComment #12
piyuesh23 commented