- Issue created by @anthonylindsay
Isn't this what the Drupal once library is for? You could use that.
See [#3158256]
- Status changed to Needs review
over 1 year ago 5:07pm 31 January 2023 - 🇮🇪Ireland anthonylindsay
Sure, it does seem like a usecase for once(), however it was late and I couldn't figure out the syntax.
The current patch, on the other hand, is readable and works.This feels like a case of "don't let perfect be the enemy of good".
- Status changed to Needs work
over 1 year ago 8:03pm 2 March 2023