Drupal 9 compatibility report by Upgrade Status module
Smart Entity Reference Selection, --
Scanned on Thu, 05/21/2020 - 09:37
FILE: modules/d9/sers/src/Plugin/EntityReferenceSelection/SmartSelection.php
STATUS LINE MESSAGE
--------------------------------------------------------------------------------
Fix now 46 Parameter $entity_manager of method
Drupal\sers\Plugin\EntityReferenceSelection\SmartSelection::
__construct() has typehint with deprecated interface
Drupal\Core\Entity\EntityManagerInterface. Deprecated in
drupal:8.0.0 and is removed from drupal:9.0.0.
--------------------------------------------------------------------------------
FILE: modules/d9/sers/sers.info.yml
STATUS LINE MESSAGE
--------------------------------------------------------------------------------
Check manually 0 Add <code>core_version_requirement: ^8 || ^9 to
sers.info.yml to designate that the module is compatible
with Drupal 9. See https://drupal.org/node/3070687.
--------------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | sers-d9-compatibility.patch | 2.17 KB | sutharsan |
Issue fork sers-3138483
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
sutharsan commentedThe patch changes the DefaultSelection constructor, but the parent constructor (\Drupal\Core\Entity\Plugin\EntityReferenceSelection\DefaultSelection::__construct) already uses entityTypeManagerInterface. Therefore this change should be without problems.
Comment #3
scuba_flyI agree, the patch makes sense.
Currently I don't have a project setup to test this, or have the time to set this up. Just wanted to add that it looks to me, that this is good to go.
If someone can test this patch on a working project. I'm happy to commit it.
Comment #4
sutharsan commentedI've tested the patch during upgrade of a site. It works correctly.
RTBC-ing, despite that I am the patch author.
Comment #7
scuba_fly