You are here

public static function Drupal::isConfigSyncing in Drupal 8

Same name and namespace in other branches
  1. 9 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 702
Contains \Drupal.

Class

Drupal
Static Service Container wrapper.

Code

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