ConfigImporterFieldPurger
class ConfigImporterFieldPurger (View source)
Processes field purges before a configuration synchronization.
Methods
Processes fields targeted for purge as part of a configuration sync.
Initializes the batch context sandbox for processing field deletions.
Gets the list of fields to purge before configuration synchronization.
Details
static
process(array $context, ConfigImporter $config_importer)
Processes fields targeted for purge as part of a configuration sync.
This takes care of deleting the field if necessary, and purging the data on the fly.
static protected
initializeSandbox(array $context, ConfigImporter $config_importer)
Initializes the batch context sandbox for processing field deletions.
This calculates the number of steps necessary to purge all the field data and saves data for later use.
static FieldStorageConfig[]
getFieldStoragesToPurge(array $extensions, array $deletes)
Gets the list of fields to purge before configuration synchronization.
If, during a configuration synchronization, a field is being deleted and the module that provides the field type is being uninstalled then the field data must be purged before the module is uninstalled. Also, if deleted fields exist whose field types are provided by modules that are being uninstalled their data need to be purged too.