$context['finished'
] = 1;
} } /**
* Finishes the batch.
*
* @param array|\ArrayAccess $context
* The batch context.
*/
protected function finish(&
$context) { $this->eventDispatcher->
dispatch(new ConfigImporterEvent($this), ConfigEvents::IMPORT
);
// The import is now complete.
$this->lock->
release(static::LOCK_NAME
);
$this->
reset();
$context['message'
] =
t('Finalizing configuration synchronization.'
);
$context['finished'
] = 1;
} /**
* Gets the next extension operation to perform.
*
* Uninstalls are processed first with themes coming before modules. Then
* installs are processed with modules coming before themes. This order is
* necessary because themes can depend on modules.
*
* @return array|bool
* An array containing the next operation and extension name to perform it
* on. If there is nothing left to do returns FALSE;
*/