Problem/Motivation
Fatal error: Class Drupal\migrate_sandbox\Plugin\migrate\destination\MigrateSandboxEntityContentBase contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Drupal\migrate\Plugin\migrate\destination\Entity::updateEntity) in /opt/drupal/web/modules/contrib/migrate_sandbox/src/Plugin/migrate/destination/MigrateSandboxEntityContentBase.php on line 13
Steps to reproduce
Select “Sandbox content entity” as a destination.
Proposed resolution
Add an empty updateEntity
method.
Remaining tasks
Review and apply patch.
User interface changes
None.
API changes
None.
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#7 | gogowitsch-3421443.patch | 1.01 KB | Gogowitsch |
gogowitsch.patch | 854 bytes | Gogowitsch |
Issue fork migrate_sandbox-3421443
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3421443-fatal-error-class changes, plain diff MR !2
Comments
Comment #2
danflanagan8Whoa! How did this happen?!?
I checked the git history on Drupal\migrate\Plugin\migrate\destination\Entity.php and found this issue: #3318888: Fix migrate destination entity PHPStan L0 issues
Looks like that was committed to 11.x. I think the module should still work with D10.x. Otherwise I would reclassify this as critical.
Thatnks for the patch, @Gogowitsch. It looks like the right fix. We need to add that good old inherit to the docblock of the new method. Back to NW for that.
Comment #5
chetan 11 CreditAttribution: chetan 11 as a volunteer and at Virasat Solutions commentedPlease check the above MR.
Comment #6
danflanagan8Comment #7
Gogowitsch CreditAttribution: Gogowitsch as a volunteer and at Letzte Generation Deutschland commentedNew patch ahead! I could not push to the fork in the MR, with Git telling me “You are not allowed to push code to this project.”
I have moved the empty function to the base class
MigrateSandboxEntity
and fixed the phpcs errors.Comment #9
danflanagan8Patch looks great. Thank you, @Gogowitsch!
Comment #11
danflanagan8