class ConfigDistroConfigImporterBatch in Config Distro 8
Custom methods for running the ConfigImporter in a batch.
Hierarchy
- class \Drupal\Core\Config\Importer\ConfigImporterBatch
- class \Drupal\config_distro\ConfigDistroConfigImporterBatch
Expanded class hierarchy of ConfigDistroConfigImporterBatch
See also
\Drupal\Core\Config\ConfigImporterBatch
File
- src/
ConfigDistroConfigImporterBatch.php, line 13
Namespace
Drupal\config_distroView source
class ConfigDistroConfigImporterBatch extends ConfigImporterBatch {
/**
* {@inheritdoc}
*/
public static function finish($success, $results, $operations) {
parent::finish($success, $results, $operations);
if ($success) {
// Dispatch an event to notify modules about the successful import.
\Drupal::service('event_dispatcher')
->dispatch(ConfigDistroEvents::IMPORT);
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigDistroConfigImporterBatch:: |
public static | function |
Finish batch. Overrides ConfigImporterBatch:: |
|
ConfigImporterBatch:: |
public static | function | Processes the config import batch and persists the importer. |