public static function ConfigDistroImportForm::finishBatch in Config Distro 8
Dispatches an event to notify modules about a successful import.
This method was deprecated in Drupal 8.6.x and will be called only on sites running an earlier version of Drupal core.
Overrides ConfigSync::finishBatch
See also
File
- src/
Form/ ConfigDistroImportForm.php, line 91
Class
- ConfigDistroImportForm
- Construct the storage changes in a configuration synchronization form.
Namespace
Drupal\config_distro\FormCode
public static function finishBatch($success, $results, $operations) {
parent::finishBatch($success, $results, $operations);
if ($success) {
// Dispatch an event to notify modules about the successful import.
\Drupal::service('event_dispatcher')
->dispatch(ConfigDistroEvents::IMPORT);
}
}