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, the notification threshold is attempted to be stored in config (fatal errors occur, since the config isn't editable). Rather than fix the config to be editable, it makes more sense to move this to the new State API.
Patch forthcoming.
Comment | File | Size | Author |
---|---|---|---|
#1 | use-drupal-state-2449851-01.patch | 10.8 KB | jhedstrom |
Comments
Comment #1
jhedstromThis patch includes a new test for notification threshold. In addition to switching to use the State API, it does the following:
login_security_t()
function in favor ofString::format()
user_logout()
was called when there was no user logged in (which triggered a PHP notice)Comment #3
jribeiro CreditAttribution: jribeiro commentedThanks again @jhedstrom.
Tested and approved.
Changes pushed to 8.x-1.x branch.