Problem/Motivation
The latest release 3.0.19 includes code from #3549384: Add support for path aliases which makes use of a method on EntityBase called setOriginal when restoring content. This method was only introduced in Drupal 11 via #2839195: Add a method to access the original property .
Steps to reproduce
On a d10 site, try to restore content, and get exception:
"Error: Call to undefined method Drupal\node\Entity\Node::setOriginal() in Drupal__node__NodeStorageTrash68dd472bb772f->restoreFromTrash() (line 81 of modules/contrib/trash/src/TrashStorageTrait.php)."
Proposed resolution
Possibly revert that issue and commit it in a new branch that's D11-only.
Not sure if there's a backwards compatible way to handle that new code in D10 or not
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork trash-3549799
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:
Comments
Comment #5
amateescu commentedMerged the fix.