You are here

public static function ConfigImporterTest::customStep in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php \Drupal\KernelTests\Core\Config\ConfigImporterTest::customStep()

Helper method to test custom config installer steps.

Parameters

array $context: Batch context.

\Drupal\Core\Config\ConfigImporter $importer: The config importer.

File

core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php, line 831

Class

ConfigImporterTest
Tests importing configuration from files into active configuration.

Namespace

Drupal\KernelTests\Core\Config

Code

public static function customStep(array &$context, ConfigImporter $importer) {
  $context['is_syncing'] = \Drupal::isConfigSyncing();
}