Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Adds a label for the HashidsHashItem value property to remove tokens warning
Implement the generateSampleValue function
Moves functions in module file into a service
Fixes #3116432: Move functions in module file into a service
The hashids_generate and hashids_decode functions are now deprecated in favor of the hashids service's generate and decode functions.
Hashids hash field: Automatically generate hashes using the host entity, related entity, or entity's reference fields.
Also included in this release is a modification to the way hashids can be generated with hashids_generate(). A list (array) may be passed as the sole argument, or multiple arguments as in version 1.0.
Initial release. Use hashids_generate to generate an id, and hashids_decode to decode the hash generated. Make sure you set a unique salt at 'admin/config/system/hashids'.