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.
Currently emitted energy is recorded at the time of occurrence. In the 8.x code I see uncommented code that suggests that the time stamp at which an energy is emitted could be set to an other value, for example in the past or in the future.
@tcmug, What is the use case you had in mind when you wrote this code?
Comment | File | Size | Author |
---|---|---|---|
#3 | radioactivity-emission-time-2677688-3.patch | 1.62 KB | Sutharsan |
Comments
Comment #2
tcmug CreditAttribution: tcmug commentedIIRC it was for finer control of the granularity - now everything is tied to when cron is run. It may be beneficial for a site to run cron once per day and still let the decay be natural.
Best place to handle this would be the REST endpoint script and not the widget itself as the timestamp will be cached.
Comment #3
Sutharsan CreditAttribution: Sutharsan commentedRemove references to this issue.
Cleaning-up unused code.
Restore request time in entity query in RadioactivityProcessor::updateField.
Comment #4
Sutharsan CreditAttribution: Sutharsan commented