ConfigImporter::finish

protected ConfigImporter::finish(&$context)

Finishes the batch.

Parameters

array|\ArrayAccess $context.: The batch context.

File

core/lib/Drupal/Core/Config/ConfigImporter.php, line 643

Class

ConfigImporter
Defines a configuration importer.

Namespace

Drupal\Core\Config

Code

protected function finish(&$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;
}
doc_Drupal
2016-10-29 08:53:38
Comments
Leave a Comment

Please login to continue.