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 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 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 commentedComment #9
samvada_jain_m commentedComment #10
suresh prabhu parkala commentedPlease review the patch.
Comment #11
karens 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 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 commentedHere's what I see still to fix, let's see what testbot says.
Comment #14
karens 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 commentedComment #17
karens 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 commentedComment #19
karens commentedThat passed, add some code cleanup.
Comment #20
karens commentedFound one more fix.
Comment #21
karens 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 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