44/44 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ -----------------------------------------------------------------------
Line amp.install
------ -----------------------------------------------------------------------
166 Call to deprecated method entityManager() of class Drupal:
in drupal:8.0.0 and is removed from drupal:9.0.0.
Use \Drupal::entityTypeManager() instead in most cases. If the needed
method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see
the
deprecated \Drupal\Core\Entity\EntityManager to find the
correct interface or service.
205 Call to deprecated method entityManager() of class Drupal:
in drupal:8.0.0 and is removed from drupal:9.0.0.
Use \Drupal::entityTypeManager() instead in most cases. If the needed
method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see
the
deprecated \Drupal\Core\Entity\EntityManager to find the
correct interface or service.
Comment | File | Size | Author |
---|---|---|---|
#20 | 3112167-deprecated-code-cleanup.patch | 3.8 KB | KarenS |
| |||
#19 | 3112167-deprecated-code-cleanup.patch | 3.75 KB | KarenS |
| |||
#18 | 3112167-deprecated-code-cleanup.patch | 1.95 KB | KarenS |
| |||
#16 | 3112167-deprecated-code-cleanup.patch | 1.95 KB | KarenS |
#14 | 3112167-deprecated-code-cleanup.patch | 2.57 KB | KarenS |
Comments
Comment #2
Lilit_Ghazaryan CreditAttribution: Lilit_Ghazaryan at EPAM Systems commentedComment #3
BerdirSeeing this with drupal-check:
And this when running the tests I get:
I think most of these are actually from dependencies, $defaultTheme needs to be taken care of, the trait was already mentioned above. The duplicate keys are afaik in amptheme and the rest is from metatag. There is already #3106310: Property 'base theme' needs to be set, the two patches should probably be tested together including the D9 patch for metatag and then we should be able to get that list to zero.
Comment #4
BerdirAnother issue here is that lullabot/amp still is not compatible with a more recent version of masterminds/html5, so we might want to try a PR on github for that.
I'm not sure why these two commits weren't done yet and why this module doesn't require ^1.1.4 of lullabot/amp because as far as I see, it will currently still install an older version that claims to be compatible with masterminds/html5 when it really isn't.
Comment #5
karishmaamin CreditAttribution: karishmaamin commentedPlease review the code.
Comment #6
BerdirLooks like that patch is only the interdiff, you need to post a full patch.
And the base theme definition doesn't belong in here, this is a module. It needs to be combined with the related issue for the amptheme project that I referenced above.
I'd also avoid changing composer.json at this point, drupal.org will take care of that now.
Comment #7
BerdirComment #8
Samvada_Jain_M CreditAttribution: Samvada_Jain_M at Specbee commentedComment #9
Samvada_Jain_M CreditAttribution: Samvada_Jain_M at Specbee commentedComment #10
Suresh Prabhu Parkala CreditAttribution: Suresh Prabhu Parkala at Specbee commentedPlease review the patch.
Comment #11
KarenS CreditAttribution: KarenS at Lullabot commentedThe code in the #10 patch is fixed in #3146122: Automated Drupal 9 compatibility fixes. Still need to address other deprecations the test indicated.
Comment #12
KarenS CreditAttribution: KarenS at Lullabot commentedThe base theme is not set in this module, it's set in the theme. Amptheme has a new release that sets that. Tests should now pull that theme, getting rid of that message. I did some other fixes to the test requirements yesterday and today in another issue that should fix a few other errors.
Comment #13
KarenS CreditAttribution: KarenS at Lullabot commentedHere's what I see still to fix, let's see what testbot says.
Comment #14
KarenS CreditAttribution: KarenS at Lullabot commentedComment #15
Berdir.
I think lullabot/amp will need to be updated to require and be compatible with mastermind/html5 2.7.
I've been pushing back on updating the version for quite some time knowing that this will cause problems here, but there have for example been lots of performance improvements that I'm sure will be helpful have.
Comment #16
KarenS CreditAttribution: KarenS at Lullabot commentedComment #17
KarenS CreditAttribution: KarenS at Lullabot commentedLet's see if we can get everything else working and separate that issue out. I don't have time to update the library ATM and nobody else has stepped up either.
Comment #18
KarenS CreditAttribution: KarenS at Lullabot commentedComment #19
KarenS CreditAttribution: KarenS at Lullabot commentedThat passed, add some code cleanup.
Comment #20
KarenS CreditAttribution: KarenS at Lullabot commentedFound one more fix.
Comment #21
KarenS CreditAttribution: KarenS at Lullabot commentedLooks like the other changes are working and tests pass. I created a separate tracking issue for the library fix, #3154863: Update masterminds/html5 version in AMP library.
Comment #23
KarenS CreditAttribution: KarenS at Lullabot commentedComment #24
Berdir@KarenS: The test configuration against D9 should be updated to PHP 7.3 as that's the minimum version for Drupal 9: https://www.drupal.org/pift-ci-job/1737564