Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
I've ported the module to Drupal 8. The entity reference integration is not yet working because entity reference works a lot differently in D8 than in D7. I hope this is acceptable nonetheless for a first (beta?) version of the module.
@maxilein are you the maintainer of the module? I have tried contacting the maintainer @maximpodorov about tagging a Drupal 8 release but haven't heard back yet
Thanks for the port as it is exactly what I needed right now.
I have a problem with the e-mail field in my node type. Would like to set the user e-mail as default value, but it's not possible to use tokens as it validates the value for an @ in the string.
Is this the right issue for this or should it be a new issue? Is there a workaround for this?
@webcultist Thanks for testing, that's an interesting use-case. It seems, though, that that doesn't work in D7 either, see #2790059: Support HTML5 Tools and Elements module. I didn't try it though...
Comments
Comment #2
darol100 commentedComment #3
tstoecklerI've ported the module to Drupal 8. The entity reference integration is not yet working because entity reference works a lot differently in D8 than in D7. I hope this is acceptable nonetheless for a first (beta?) version of the module.
The code is also available at https://github.com/tstoeckler/field_default_token , which is partly based on https://github.com/mohit-rocks/field_default_token .
Please review, thanks!
Comment #4
maxilein commentedThanks!
I will start testing it during this week.
Comment #5
stefan.r commented@maxilein are you the maintainer of the module? I have tried contacting the maintainer @maximpodorov about tagging a Drupal 8 release but haven't heard back yet
Comment #6
stefan.r commentedMarking RTBC so maintainer can have a look at this
Comment #7
maxilein commented@stefan: I am not. Waiting like you.
Comment #8
maximpodorov commentedOK, let's create a new branch for it.
Comment #9
maximpodorov commentedNew branch and development release have been created.
Comment #10
webcultist commentedThanks for the port as it is exactly what I needed right now.
I have a problem with the e-mail field in my node type. Would like to set the user e-mail as default value, but it's not possible to use tokens as it validates the value for an @ in the string.
Is this the right issue for this or should it be a new issue? Is there a workaround for this?
Comment #11
maximpodorov commentedThis issue is to create a new D8 release. The bugs should be fixed in another issues.
Comment #12
maxilein commentedthanks for creating the dev release!
Comment #13
tstoecklerYay, thanks @maximpodorov that's great news!
@webcultist Thanks for testing, that's an interesting use-case. It seems, though, that that doesn't work in D7 either, see #2790059: Support HTML5 Tools and Elements module. I didn't try it though...