Problem/Motivation
'entity.manager' Service has been deprecated in Drupal 9. Hence the ImagefieldSlideshowFieldFormatter won't work in D9.
Proposed resolution
Use the entity type manager service ('entity_type.manager') instead ...
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | interdiff.txt | 623 bytes | ravimane23 |
| #4 | image_slideshow_ImagefieldSlideshowFieldFormatter_d9_3190617_3.patch | 6.23 KB | ravimane23 |
| #2 | image_slideshow_ImagefieldSlideshowFieldFormatter_d9_3190617_#2.patch | 6.22 KB | itamair |
Comments
Comment #2
itamair commentedThe attached patch fixes the issue, more appropriately using the entity type manager service ('entity_type.manager') in the ImagefieldSlideshowFieldFormatter, upgrading the module to Drupal 9 compatibility
It also fixes Drupal/Php Coding standards in the same ImagefieldSlideshowFieldFormatter, correct use of translatable strings and correct use of placeholders into those.
Comment #3
itamair commentedComment #4
ravimane23 commentedHi @itamair,
You patch is not getting applied to latest dev version, so releasing new patch.
Comment #5
heykarthikwithuComment #7
heykarthikwithuComment #8
rachel_norfolkJust doing a little tag tidying. Nice work everyone!!