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 on version:
167be1c05fb713e030db9c94365d5ef7f09374b9
------ -------------------------------------------------------------
Line src/Plugin/Field/FieldType/EntityReferenceRevisionsItem.php
------ -------------------------------------------------------------
405 Call to deprecated method entityManager() of class Drupal.
------ -------------------------------------------------------------
------ -------------------------------------------------------------------------------
Line src/Plugin/diff/Field/EntityReferenceRevisionsFieldDiffBuilder.php
------ -------------------------------------------------------------------------------
Class Drupal\diff\FieldDiffBuilderBase not found and could not be autoloaded.
------ -------------------------------------------------------------------------------
------ -------------------------------------------------------
Line src/Plugin/views/display/EntityReferenceRevisions.php
------ -------------------------------------------------------
126 Call to deprecated function db_like().
132 Call to deprecated function db_or().
------ -------------------------------------------------------
------ ----------------------------------------------------------------------------------------
Line tests/src/Kernel/EntityReferenceRevisionsCompositeTest.php
------ ----------------------------------------------------------------------------------------
117 Call to deprecated method assertEqual() of class Drupal\KernelTests\KernelTestBase.
124 Call to deprecated method assertEqual() of class Drupal\KernelTests\KernelTestBase.
125 Call to deprecated method assertEqual() of class Drupal\KernelTests\KernelTestBase.
126 Call to deprecated method assertEqual() of class Drupal\KernelTests\KernelTestBase.
133 Call to deprecated function node_load().
135 Call to deprecated method assertEqual() of class Drupal\KernelTests\KernelTestBase.
136 Call to deprecated method assertNotEqual() of class Drupal\KernelTests\KernelTestBase.
140 Call to deprecated method assertEqual() of class Drupal\KernelTests\KernelTestBase.
147 Call to deprecated function node_load().
149 Call to deprecated method assertNotEqual() of class Drupal\KernelTests\KernelTestBase.
150 Call to deprecated method assertNotEqual() of class Drupal\KernelTests\KernelTestBase.
192 Call to deprecated method assertEqual() of class Drupal\KernelTests\KernelTestBase.
193 Call to deprecated method assertEqual() of class Drupal\KernelTests\KernelTestBase.
194 Call to deprecated method assertEqual() of class Drupal\KernelTests\KernelTestBase.
247 Call to deprecated method assertEqual() of class Drupal\KernelTests\KernelTestBase.
248 Call to deprecated method assertEqual() of class Drupal\KernelTests\KernelTestBase.
249 Call to deprecated method assertEqual() of class Drupal\KernelTests\KernelTestBase.
291 Call to deprecated method assertEqual() of class Drupal\KernelTests\KernelTestBase.
292 Call to deprecated method assertEqual() of class Drupal\KernelTests\KernelTestBase.
293 Call to deprecated method assertEqual() of class Drupal\KernelTests\KernelTestBase.
299 Call to deprecated method assertNotEqual() of class Drupal\KernelTests\KernelTestBase.
------ ----------------------------------------------------------------------------------------
------ --------------------------------------------------------------------------------------------------------------------------------------------------------------
Line tests/src/Kernel/EntityReferenceRevisionsFormatterTest.php
------ --------------------------------------------------------------------------------------------------------------------------------------------------------------
19 Usage of deprecated trait Drupal\simpletest\UserCreationTrait in class Drupal\Tests\entity_reference_revisions\Kernel\EntityReferenceRevisionsFormatterTest.
------ --------------------------------------------------------------------------------------------------------------------------------------------------------------
[ERROR] Found 26 errors
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#8 | drupal-9-deprecated-code-3042589-8-interdiff.txt | 8.26 KB | Berdir |
#8 | drupal-9-deprecated-code-3042589-8.patch | 13.32 KB | Berdir |
| |||
#5 | interdiff_2-5.patch | 7.95 KB | amarphule |
#5 | drupal-9-deprecated-code-3042589-5.patch | 7.46 KB | amarphule |
#2 | drupal_9_deprecated_code-3042589-2.patch | 9.43 KB | Sergiu Stici |
Comments
Comment #2
Sergiu Stici CreditAttribution: Sergiu Stici at FFW commentedHere is the patch, please review.
Comment #4
amarphule CreditAttribution: amarphule at DevsAdda for DevsAdda commentedComment #5
amarphule CreditAttribution: amarphule at DevsAdda for DevsAdda commentedCreated a new patch and added interdiff. The patch works for me cleanly
Comment #7
Berdirwhy the commented left-over?
extra space before $node.
Also, still seeing reports about deprecated db_* functions with drupal-check as well as a Drupal::entityManager() call.
There's also one about ConfigurablePluginInterface in a migrate class.
Converting the web tests then makes sense as a separate issue.
Comment #8
BerdirRerolled and fixed the remaining stuff.
Comment #9
BerdirCommitted.