Drupal 8  8.0.2
ConfigImporterFieldPurger Class Reference

Static Public Member Functions

static process (array &$context, ConfigImporter $config_importer)
 

Static Protected Member Functions

static initializeSandbox (array &$context, ConfigImporter $config_importer)
 

Detailed Description

Processes field purges before a configuration synchronization.

Member Function Documentation

static initializeSandbox ( array &  $context,
ConfigImporter  $config_importer 
)
staticprotected

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.

Parameters
array$contextThe batch context.
\Drupal\Core\Config\ConfigImporter$config_importerThe config importer.

References Drupal\config(), Drupal\entityManager(), ConfigImporter\getStorageComparer(), and ConfigImporter\getUnprocessedConfiguration().

Here is the call graph for this function:

static process ( array &  $context,
ConfigImporter  $config_importer 
)
static

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.

Parameters
array$contextThe batch context.
\Drupal\Core\Config\ConfigImporter$config_importerThe config importer.

References field_purge_batch(), ConfigImporter\getUnprocessedConfiguration(), and Drupal\translation().

Here is the call graph for this function:


The documentation for this class was generated from the following file: