Set the expiration of a key/value pair from the PrivateTempStore

Created on 5 December 2017, over 6 years ago
Updated 5 October 2022, over 1 year ago

The PrivateTempStore service does not yet offer a possibility to set the expiration of a key/value pair, other then creating the object itself instead of just using the service.

The attached patch adds an optional parameter to the setter of the object. It also includes code from issue https://www.drupal.org/project/drupal/issues/2743931 β†’ that enables anonymous users to use the store.

✨ Feature request
Status

Needs work

Version

11.0 πŸ”₯

Component
User moduleΒ  β†’

Last updated about 4 hours ago

Created by

πŸ‡³πŸ‡±Netherlands markwittens

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024