You are here

public static function Drupal::isConfigSyncing in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal.php \Drupal::isConfigSyncing()
  2. 10 core/lib/Drupal.php \Drupal::isConfigSyncing()

Gets the syncing state.

Return value

bool Returns TRUE is syncing flag set.

4 calls to Drupal::isConfigSyncing()
ConfigImporterTest::customStep in core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php
Helper method to test custom config installer steps.
ConfigImporterTest::testCustomStep in core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php
Tests that the isConfigSyncing flag is set correctly during a custom step.
ConfigImporterTest::testInvalidStep in core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php
Tests that the isConfigSyncing flag is cleanup after an invalid step.
_config_test_update_is_syncing_store in core/modules/config/tests/config_test/config_test.hooks.inc
Helper function for testing hooks during configuration sync.

File

core/lib/Drupal.php, line 659

Class

Drupal
Static Service Container wrapper.

Code

public static function isConfigSyncing() {
  return static::getContainer()
    ->get('config.installer')
    ->isSyncing();
}