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.
Replacing the deprecated usage of entity_create used with the variable entity type with a direct call to EntityManager::getStorage()->create()
Please find the attached patch which fixes this issue in this Entity Pilot module.
Comment | File | Size | Author |
---|---|---|---|
#10 | 2688887-10.patch | 2.32 KB | neerajsingh |
#10 | interdiff-2688887-6-10.txt | 2.17 KB | neerajsingh |
#6 | entity_pilot_newupdated.patch | 3.47 KB | pashupathi nath gajawada |
#3 | entity_pilot_updated.patch | 3.19 KB | pashupathi nath gajawada |
entity_pilot_entitycreate_deprecated.patch | 3.18 KB | pashupathi nath gajawada | |
Comments
Comment #2
larowlanWhite space issues here - please see drupal.org/node/1391 for policy on tabs vs spaces.
Comment #3
pashupathi nath gajawada CreditAttribution: pashupathi nath gajawada as a volunteer and at Melity commentedI have removed the white spaces and updated the patch.
Find the updated patch.
Comment #4
pashupathi nath gajawada CreditAttribution: pashupathi nath gajawada as a volunteer and at Melity commentedComment #5
larowlanStill has whitespace issues, sorry
Comment #6
pashupathi nath gajawada CreditAttribution: pashupathi nath gajawada as a volunteer and at Melity commentedUpdated the patch by removing the white spaces.
Please find the updated patch.
Comment #7
larowlanWe need to keep the save call separate
Can we store this in a variable instead of calling the container twice.
Can you revert this change
Whitespace issues here, and same issue with save
Comment #8
larowlanComment #9
larowlanComment #10
neerajsinghPatch re-rolled.
Comment #11
Shashwat Purav CreditAttribution: Shashwat Purav at Portage CyberTech for Drupal Association commentedThe patch in #10 failed to applied successfully to 8.x-1.x branch.