drupal-check modules/contrib/galleryslider

 3/3 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ ----------------------------------------------------------------------------------- 
  Line   src/Plugin/Field/FieldFormatter/GallerySliderFieldFormatter.php                    
 ------ ----------------------------------------------------------------------------------- 
  57     Call to deprecated method getStorage() of class Drupal\Core\Entity\EntityManager:  
         in drupal:8.0.0 and is removed from drupal:9.0.0.                                  
         Use \Drupal\Core\Entity\EntityTypeManagerInterface::getStorage() instead.

Comments

yonas.legesse created an issue. See original summary.

yonas.legesse’s picture

Status: Active » Needs review
StatusFileSize
new691 bytes

Made change and confirmed error free output.

kristen pol’s picture

Presuming this is for Drupal 9 porting weekend since this was created during that time.

dharizza’s picture

Status: Needs review » Reviewed & tested by the community

Hello!
I scanned this with upgrade_status module, before applying the patch I got the issue described here, after applying the patch and re-running the scan this issue was cleared.

jungle’s picture

Status: Reviewed & tested by the community » Needs work

Thanks everyone! I would suggest merging the patch from #3139140: Add core version requirement and close that one to save time for the maintainer. The scope of this one covers that one's, no need to rescope here.

mrinalini9’s picture

Assigned: Unassigned » mrinalini9
mrinalini9’s picture

Assigned: mrinalini9 » Unassigned
Status: Needs work » Needs review
StatusFileSize
new1 KB
new271 bytes

Updated patch as suggested in #5, please review.

mrinalini9’s picture

Issue tags: +DIACWMay2020
jungle’s picture

Status: Needs review » Needs work

Thank you @mrinalini9!

One more left to go:


CONTRIBUTED PROJECTS
--------------------------------------------------------------------------------
Gallery slider 8.x-1.x-dev
Scanned on Sat, 05/23/2020 - 14:44.

1 error found.

Pledge to have it ready before the Drupal 9 release date.

web/modules/contrib/galleryslider/src/Plugin/Field/FieldFormatter/GallerySliderF
ieldFormatter.php:
┌─────────┬──────┬──────────────────────────────────────────────────────┐
│ STATUS  │ LINE │                       MESSAGE                        │
├─────────┼──────┼──────────────────────────────────────────────────────┤
│ Fix now │ 185  │ Call to deprecated method urlInfo() of class         │
│         │      │ Drupal\Core\Entity\EntityInterface. Deprecated in    │
│         │      │ drupal:8.0.0 and is removed from drupal:9.0.0. Use   │
│         │      │ Drupal\Core\Entity\EntityInterface::toUrl() instead. │
│         │      │                                                      │
└─────────┴──────┴──────────────────────────────────────────────────────┘
mrinalini9’s picture

Assigned: Unassigned » mrinalini9
mrinalini9’s picture

Assigned: mrinalini9 » Unassigned
Status: Needs work » Needs review
StatusFileSize
new1.35 KB
new559 bytes

Updated patch as mentioned in #9, please review.

jungle’s picture

Status: Needs review » Reviewed & tested by the community

Checked on my local. No known errors. It is good to go to me. Thank you @mrinalini9!

For the issue marked as a duplicate, all people get involved in there are also here, so no need to taking extra care of the credit thing.

jungle’s picture

  • riazsaid15 committed 94d9f76 on 8.x-2.x
    Issue #3139135 by riazsaid15: Drupal 9 deprecated code report
    
riazsaid15’s picture

Thanks to all, I have added the above-mentioned issues.

xem8vfdh’s picture

is this merged? I see core_version_requirement: ^8 || ^9 in the 8.x-3.x branch's current info file...

ishfaqafridi85’s picture

Status: Reviewed & tested by the community » Fixed

This fix was committed in 94d9f76 and is included in 8.x-3.1. Marking this fixed. Thanks to everyone who provided patches and tested the changes.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.