Problem/Motivation
We are using the entityreference_filter module on several of our websites that we want to migrate to Drupal 11.
Proposed resolution
- Implement a Drupal 11 compatible version of this module.
- Fix phpcs, phpstan, eslint, stylelint and cspell warnings.
- Fix unit tests.
- Add Gitlab CI.
- Add README.
Remaining tasks
Publish, review and validate MR.
Testing on Drupal 11
To test on Drupal 11, add the following lines to your composer.json repositories section:
"repositories": [
{
"type": "vcs",
"url": "https://git.drupalcode.org/issue/entityreference_filter-3478914.git"
},
and then run:
composer require drupal/entityreference_filter:dev-3478914-drupal-11-compatibility
Comments
Comment #3
mably commentedComment #4
mably commentedAll green 🎉
Comment #5
mably commentedComment #6
ryan-l-robinson commentedThank you. I'm not quite ready to go for Drupal 11, but I used this to fix some errors stopping me from running other unit tests.
Comment #9
maximkashubaThank you mably for the patch! Great job!
Comment #10
maximkashubahi @mably,
yep better to use static. Could you reopen the issue and add the patch ?
Comment #11
mably commentedAnother solution is then to make the constructor final to avoid the phpstan warning. Are you ok with that?
Or should just add a phpstan ignore?
Comment #12
maximkashubamalby,
i don't want to make constructor final,
plz just use static instead of self.
Comment #14
mably commented@maximkashuba MR 25 is ready for merging.
EDIT: could the
2.0.xbranch be made the new default? We are still stuck on7.x-1.x.Comment #15
maximkashubaComment #17
maximkashubaYes, it's ok. Thank you @mably.
Comment #18
mably commentedYou're welcome :)