- Issue created by @daffie
- Merge request !9581Changed the filter functionality to a condition object β (Closed) created by daffie
- π¦π·Argentina dagmar Argentina
Thanks, looks good to me as well.
The method
addFilterToQuery(Request $request, SelectInterface &$query)
needs some documentation updates. The return type is not properly documented. - First commit to issue fork.
- π³π±Netherlands daffie
The wrong return value and type hint for the method DbLogController::addFilterToQuery() has been adressed.
@dagmar & @rajneeshb: Thanks!
- πΊπΈUnited States smustgrave
Left small comments on the MR
Searching the repo only see about 20 functions that document return void.
- π³π±Netherlands daffie
Removed the return void from the docblock as requested.
BTW: I get over 20 hits when I do a search for
@return void
in the code base. - π³πΏNew Zealand quietone
I read the IS, comments and the MR. I didn't spot any problems here.
- π¬π§United Kingdom longwave UK
I was a bit worried about the BC break here, but I think most people who are overriding this in 2024 are just going to be using Views instead of writing code that extends the controller.
Another followup could be to refactor away
_dblog_get_message_types()
anddblog_filters()
into OO code somewhere, they look a bit lonely in their individual files. -
longwave β
committed 1c773fed on 11.x
Issue #3476175 by daffie, rajneeshb, smustgrave, dagmar: Change the...
-
longwave β
committed 1c773fed on 11.x
- Status changed to Fixed
2 months ago 10:30am 24 December 2024 - πΊπΈUnited States benjifisher Boston area
The filters in
Drupal\migrate\Controller\MigrateMessageController
are modeled on the code in thedblog
module, so that probably needs to be updated, too. I added π Change the filter in the details page for migration messages to a condition object Active .I know I am late to the party, but I have a nit with the new code:
protected function addFilterToQuery(Request $request, SelectInterface &$query): void {
Because of the PHP object model, you almost never have to pass an object by reference.
Automatically closed - issue fixed for 2 weeks with no activity.