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.
Right now, in order to completely empty all entries from a specific storage, you need to iterate over the results of listAll() and delete each entry one by one. Most storage engines can handle this a lot more efficiently, so we should add a deleteAll() function to StorageInterface() along with an implementation for all existing engines.
Comment | File | Size | Author |
---|---|---|---|
#2 | 1851180-delete-all-2.patch | 5.81 KB | gdd |
Comments
Comment #1
gddComment #2
gddImplements deleteAll() in the interface and all storage engines, plus tests.
Comment #3
mahtoranjeet CreditAttribution: mahtoranjeet commented1) Installed New Drupal 8
2) Downloaded patch #2 and apply.
deleteAll Function is added to Drupal/Core/config/StorageInterface.php file
Comment #4
catchLooks good. Committed/pushed to 8.x.