Closed (fixed)
Project:
Drupal core
Version:
8.9.x-dev
Component:
system.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Aug 2021 at 08:01 UTC
Updated:
8 Sep 2021 at 11:09 UTC
Jump to comment: Most recent
Comments
Comment #2
larowlanUse the sequences table or the lock api
Comment #3
longwaveIt sounds like these submissions should either be entities with a uniquely generated ID on insert, or if you really need custom code here use the sequences table or the lock API as suggested above. As you have found, the state API probably isn't the right place to do this sort of thing.