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 limit of items to process per batch iteration is hardcoded in EntityImporterBatchProcess. Using a getter instead of accessing the limit variable directly would allow source plugins to manage that value.
Comment | File | Size | Author |
---|---|---|---|
#3 | entity_import-limit_getter-3088838-3.patch | 2.72 KB | droath |
#2 | entity_import-limit_getter-3088838-2.patch | 1.9 KB | justin2pin |
Comments
Comment #2
justin2pin CreditAttribution: justin2pin commentedPatch attached with getter for limit count.
Comment #3
droath CreditAttribution: droath at Aten Design Group commentedMade some minor adjustments, so that we don't have to call a get method which sets the default limit. Then after thinking about it, it made sense to me to just remove the setLimitCount(), and only provide a getLimitCount(). Then the source plugin that's extending the EntityImportSourceLimitIteratorBase class has all the control of what the limit count should be, or it can be set via the UI.
Comment #5
droath CreditAttribution: droath at Aten Design Group commentedComment #6
droath CreditAttribution: droath at Aten Design Group commented