You are here

protected function ConfigImporter::finish in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Config/ConfigImporter.php \Drupal\Core\Config\ConfigImporter::finish()

Finishes the batch.

Parameters

array $context.: The batch context.

File

core/lib/Drupal/Core/Config/ConfigImporter.php, line 645
Contains \Drupal\Core\Config\ConfigImporter.

Class

ConfigImporter
Defines a configuration importer.

Namespace

Drupal\Core\Config

Code

protected function finish(array &$context) {
  $this->eventDispatcher
    ->dispatch(ConfigEvents::IMPORT, new ConfigImporterEvent($this));

  // The import is now complete.
  $this->lock
    ->release(static::LOCK_NAME);
  $this
    ->reset();
  $context['message'] = t('Finalizing configuration synchronization.');
  $context['finished'] = 1;
}