Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
core/modules is so large, so splitting to several issues.
This is issue for views and views_ui modules.
Part of #2089331: [meta] Replace calls to check_plain() with Drupal\Component\Utility\String::checkPlain().
Comment | File | Size | Author |
---|---|---|---|
#23 | 2187829-views-check-plain-23.patch | 34.17 KB | ianthomas_uk |
Comments
Comment #1
IshaDakota CreditAttribution: IshaDakota commentedReplacing all check_plain() with String::check_plain().
Comment #2
IshaDakota CreditAttribution: IshaDakota commentedFirst patch left out views_ui (and a few others).
Comment #5
longwaveComment #7
longwaveComment #9
longwave7: 2187829-views-check-plain-7.patch queued for re-testing.
Comment #11
longwave7: 2187829-views-check-plain-7.patch queued for re-testing.
Comment #13
richard.c.allen2386 CreditAttribution: richard.c.allen2386 commentedTried re-rolling the patch, new to the issue so no idea if this is going to fix the issue but it applies cleanly to current dev and install.php is running fine.
Comment #15
longwaveSimilarly the installation worked fine for me in the UI, but I managed to reproduce the failure with drush.
The problem is a clash between the Views classes named "String" and the import of \Drupal\Component\Utility\String via use statements. See the interdiff for details.
Comment #17
longwaveComment #18
ianthomas_ukGood catch, but it should be UtilityString according to the coding standards (https://drupal.org/node/1353118 class aliasing section). Other than that the patch looks good.
Comment #19
longwaveStringUtility is much more readable and makes more sense to me, but coding standards are coding standards.
Comment #21
longwave19: 2187829-views-check-plain-19.patch queued for re-testing.
Comment #22
longwaveComment #23
ianthomas_ukThe patch looks good now. It needed a really minor reroll because some of the context changed in ViewsUIController, but hopefully it's still OK to mark as RTBC.
Comment #24
catchCommitted/pushed to 8.x, thanks!