You are here

config_import_test.module in Zircon Profile 8.0

Provides configuration import test helpers.

File

core/modules/config/tests/config_import_test/config_import_test.module
View source
<?php

/**
 * @file
 * Provides configuration import test helpers.
 */

/**
 * Implements hook_config_import_steps_alter().
 */
function config_import_test_config_import_steps_alter(&$sync_steps) {
  $sync_steps[] = '_config_import_test_config_import_steps_alter';
}

/**
 * Implements configuration synchronization step added by an alter for testing.
 *
 * @param array $context
 *   The batch context.
 */
function _config_import_test_config_import_steps_alter(&$context) {
  $GLOBALS['hook_config_test']['config_import_steps_alter'] = TRUE;
  $context['finished'] = 1;
  return;
}

Functions

Namesort descending Description
config_import_test_config_import_steps_alter Implements hook_config_import_steps_alter().
_config_import_test_config_import_steps_alter Implements configuration synchronization step added by an alter for testing.