Closed (fixed)
Project:
Drupal core
Version:
8.4.x-dev
Component:
search.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Jan 2017 at 21:12 UTC
Updated:
13 Apr 2017 at 23:25 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
tim.plunkettComment #3
claudiu.cristeaThe patch looks good but what if a custom/contrib module class extends methods from SearchPageForm that are part of EntityForm, like ::form(), ::actions()?
Comment #4
tim.plunkettForms/controllers and form arrays AND entity handlers are all explicitly not protected by BC.
https://www.drupal.org/core/d8-bc-policy#controllers
Comment #5
claudiu.cristea@tim.plunkett, thank you for clarifying this. Given that SearchPageForm is not marked as @api this is not a BC break.
However, the
search_pageconfig entity claims that this form is an entity form:Also the docblock of \Drupal\search\Plugin\SearchInterface::searchFormAlter() makes a reference to \Drupal\search\Form\SearchPageForm::form() and that shold be adapted too.
Comment #7
pwolanin commentedmarking as novice since it seems the remaining work consists of minor annotation and code comment fixes.
Comment #8
tameeshb commentedComment #9
pwolanin commentedPlease don't leave assigned for more than a day (or at all - sometimes better just to leave a comment if you are immediately working on it)
Comment #10
Lal_Comment #11
claudiu.cristea#5 still not addressed.
Comment #12
pwolanin commentedSeems to be the same patch?
Comment #13
joyceg commented@pwolanin,
so, reroll to 8.4-x-dev?
Comment #14
pwolanin commentedOk, seems #10 is a re-roll for 8.4.x, but not labeled as such. Seems like tim's patch doesn't apply to 8.4.x using git apply
Here are also the fixes suggested by claudiu.cristea.
Comment #15
claudiu.cristea@pwolanin, Indeed, I suggested that entity "search" form is not an entity form and should be removed from annotation. This is correct, hope no custom or contrib code has referred the form by using the "search" key.
Looks good.
Comment #16
alexpottI've checked search_api - shouldn't be impacted. Tests pass too.
Comment #18
catchCommitted/pushed to 8.4.x, thanks!