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:
source : [git] https://git.drupal.org/project/eck ecf376114716c9174615534fb42c47bf596f1f17
source : http://git.drupal.org/project/eck.git
Errors
------ -----------------------------------------------
Line src/Controller/EckEntityBundleListBuilder.php
------ -----------------------------------------------
75 Call to deprecated method getLabel() of class
Drupal\Core\Entity\EntityListBuilder.
------ -----------------------------------------------
------ ---------------------------------------------
Line src/Entity/EckEntityType.php
------ ---------------------------------------------
98 Call to deprecated method link() of class
Drupal\Core\Config\Entity\ConfigEntityBase.
------ ---------------------------------------------
------ ---------------------------------------------------
Line tests/src/Unit/UnitTestBase.php
------ ---------------------------------------------------
89 Fetching class constant class of deprecated class
Drupal\Core\Entity\EntityManagerInterface.
------ ---------------------------------------------------
[ERROR] Found 3 errors
Warnings
------ -----------------------------------------------
Line eck.install
------ -----------------------------------------------
32 Call to deprecated method applyUpdates() of class
Drupal\Core\Entity\EntityDefinitionUpdateManagerInterface.
------ -----------------------------------------------
------ ---------------------------------------------
Line eck.install
------ ---------------------------------------------
51 Call to deprecated method applyUpdates() of class
Drupal\Core\Entity\EntityDefinitionUpdateManagerInterface
------ ---------------------------------------------
------ ---------------------------------------------------
Line src/Entity/EckEntityType.php
------ ---------------------------------------------------
121 Call to deprecated method applyUpdates() of class
Drupal\Core\Entity\EntityDefinitionUpdateManagerInterface
------ ---------------------------------------------------
------ ---------------------------------------------------
Line src/Form/EntityType/EckEntityTypeEditForm.php
------ ---------------------------------------------------
34 Call to deprecated method getFieldStorageDefinitions() of class
Drupal\Core\Entity\Sql\SqlContentEntityStorage
------ ---------------------------------------------------
[WARNING] Found 4 warnings
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#15 | interdiff_8-15.txt | 1.45 KB | andralex |
#15 | eck-3042837-15.patch | 2.33 KB | andralex |
|
Comments
Comment #2
jigish.addweb CreditAttribution: jigish.addweb at AddWeb Solution Pvt. Ltd. commented@mcdwayne, As per your above-mentioned requirement, I attached a patch for the same. Kindly review the attachment and feel free to share & discuss your views.
Thanks!
Comment #3
oknateIt looks like you're missing a use statement here:
I think you need to add a use statement at the top of the file for EntityTypeManagerInterface.
Comment #6
sim_1Updating issue description with warnings from the latest code that includes deprecated code from D8.7.
Comment #7
sim_1Also, I'll add a note confirming that the patch resolves all of the errors. The only remaining issues are warnings.
Comment #8
-enzo- CreditAttribution: -enzo- at weKnow Inc commentedHi folks
I re-use the part of patch #2, and some other changes and according with
drupal-check
all looks ok, please checkComment #9
-enzo- CreditAttribution: -enzo- at weKnow Inc commentedComment #10
Tolyan4ik CreditAttribution: Tolyan4ik at EPAM Systems commentedNeed to add "core_version_requirement: ^8 || ^9" to info.yml file
Comment #11
Tolyan4ik CreditAttribution: Tolyan4ik at EPAM Systems commentedComment #12
andralex CreditAttribution: andralex at EPAM Systems for EPAM Systems commentedCombined #8 and #11 patches into one. Fixed
from failed tests.
Comment #14
andralex CreditAttribution: andralex at EPAM Systems for EPAM Systems commentedShould fix failed test. Added codesniffer fixes.
Comment #15
andralex CreditAttribution: andralex at EPAM Systems for EPAM Systems commentedSorry guys. One more try. It should work now.
Comment #16
alex_optimGood work.
Comment #17
pifagorComment #19
pifagor