Closed (duplicate)
Project:
Token
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 May 2017 at 09:42 UTC
Updated:
7 Aug 2024 at 11:38 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jerome legendreHello,
I just builted the following module for this. I suppose this will become obsolete with Token future versions.
https://www.drupal.org/project/tokenuuid
Comment #3
berdirWe already expose the uuid token as part of the field tokens, but since it is a base field, we only do that for entity types that have no tokens yet.
Open for patches to also add it for entity types that don't have a uuid token yet though.
Comment #4
heddnI'm seeing where there's a check for FieldStorageConfigInterface and continuing. So I don't think it is the case any more that UUID is added with field tokens.
UUID fields are BaseFieldDefinition, which is not an implementation of FieldStorageConfigInterface.
Comment #5
heddnComment #6
heddnMoving the patch from #2493567-36: Allow field tokens also for base fields over to here.
Comment #7
heddnComment #9
berdirThis is there by design, we only expose base fields for entity types where we also define the token type, so we don't end up with duplicated custom tokens and generic tokens.
Comment #10
chrisolof commentedThere is a patch that should fix this issue over in #3047568: Consistent tokens support across all entities and fields.
Comment #11
it-cruShould we mark this as duplicate from #3047568: Consistent tokens support across all entities and fields, because patch from the the other issue provides UUID token and also other stuff.
Comment #12
mxr576As suggested, closing this a duplicate of #3047568: Consistent tokens support across all entities and fields. That issue is still active...