Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
drupal-check results on commit hash: e0c9acb48f6cc441e3746dd6563ea483239a6b79
------ --------------------------------------------------------------------
Line tests/src/Functional/InstagramEmbedFormatterTest.php
------ --------------------------------------------------------------------
15 Usage of deprecated trait
Drupal\Tests\media\Functional\MediaFunctionalTestCreateMediaTypeTr
ait in class
Drupal\Tests\media_entity_instagram\Functional\InstagramEmbedForma
tterTest.
80 Call to deprecated function entity_get_display().
------ --------------------------------------------------------------------
------ ----------------------------------------------
Line tests/src/Unit/ConstraintsTest.php
------ ----------------------------------------------
48 Call to deprecated method getMock() of class
Drupal\Tests\UnitTestCase.
------ ----------------------------------------------
[ERROR] Found 3 errors
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#10 | interdiff_7-10.txt | 5.63 KB | katherined |
#10 | drupal_9_deprecated_code-3042756-10.patch | 6.64 KB | katherined |
|
Comments
Comment #2
Sergiu Stici CreditAttribution: Sergiu Stici at FFW commentedHere is the patch, please review.
Comment #4
Sergiu Stici CreditAttribution: Sergiu Stici at FFW commentedComment #6
chr.fritschPatch does not apply and there are more deprecations than that:
Comment #7
katherinedreroll previous patch
Comment #8
katherinedComment #10
katherinedThinking entity_get_display() should stay as-in until 8.8 is the minimum supported release.
Comment #11
chr.fritschThank you @katherined. It looks good to me now.
Comment #13
chr.fritschDone
Comment #15
DamienMcKenna