function Drupal::isConfigSyncing

Same name in other branches
  1. 8.9.x core/lib/Drupal.php \Drupal::isConfigSyncing()
  2. 10 core/lib/Drupal.php \Drupal::isConfigSyncing()
  3. 11.x 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 668

Class

Drupal
Static Service Container wrapper.

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.