Is there any way to merge trashed elements with an existing element? I'm creating a custom restore action so you can merge a trashed (commerce) Product with an existing one. The mergeElementsByIds function is failing because it uses the getElementById function which ignores trashed elements. Is there any work around?

Thanks in advance!



You can now delete objects that implement ElementInterface using this method:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.