Pass data from ion-modal on backdrop dismiss


I would like to pass a value from an ion-modal to the modal opening component on modal backdrop dismiss. I know, that I can check that it was a backdrop dismiss by modal.role === ‘backdrop’. But I would like to pass a variable e.g. “inputFieldValue” from modal to the modal opener on backdrop dismiss.

Is this possible?

Thank you!