Drupal 8  8.0.2
ConfigSync Class Reference
Inheritance diagram for ConfigSync:

Public Member Functions

 __construct (StorageInterface $sync_storage, StorageInterface $active_storage, StorageInterface $snapshot_storage, LockBackendInterface $lock, EventDispatcherInterface $event_dispatcher, ConfigManagerInterface $config_manager, TypedConfigManagerInterface $typed_config, ModuleHandlerInterface $module_handler, ModuleInstallerInterface $module_installer, ThemeHandlerInterface $theme_handler, RendererInterface $renderer)
 
 getFormId ()
 
 buildForm (array $form, FormStateInterface $form_state)
 
 submitForm (array &$form, FormStateInterface $form_state)
 

Static Public Member Functions

static create (ContainerInterface $container)
 
static processBatch (ConfigImporter $config_importer, $sync_step, &$context)
 
static finishBatch ($success, $results, $operations)
 

Protected Attributes

 $lock
 
 $syncStorage
 
 $activeStorage
 
 $snapshotStorage
 
 $eventDispatcher
 
 $configManager
 
 $typedConfigManager
 
 $moduleHandler
 
 $themeHandler
 
 $moduleInstaller
 
 $renderer
 

Detailed Description

Construct the storage changes in a configuration synchronization form.

Constructor & Destructor Documentation

__construct ( StorageInterface  $sync_storage,
StorageInterface  $active_storage,
StorageInterface  $snapshot_storage,
LockBackendInterface  $lock,
EventDispatcherInterface  $event_dispatcher,
ConfigManagerInterface  $config_manager,
TypedConfigManagerInterface  $typed_config,
ModuleHandlerInterface  $module_handler,
ModuleInstallerInterface  $module_installer,
ThemeHandlerInterface  $theme_handler,
RendererInterface  $renderer 
)

Constructs the object.

Parameters
\Drupal\Core\Config\StorageInterface$sync_storageThe source storage.
\Drupal\Core\Config\StorageInterface$active_storageThe target storage.
\Drupal\Core\Config\StorageInterface$snapshot_storageThe snapshot storage.
\Drupal\Core\Lock\LockBackendInterface$lockThe lock object.
\Symfony\Component\EventDispatcher\EventDispatcherInterface$event_dispatcherEvent dispatcher.
\Drupal\Core\Config\ConfigManagerInterface$config_managerConfiguration manager.
\Drupal\Core\Config\TypedConfigManagerInterface$typed_configThe typed configuration manager.
\Drupal\Core\Extension\ModuleHandlerInterface$module_handlerThe module handler.
\Drupal\Core\Extension\ModuleInstallerInterface$module_installerThe module installer.
\Drupal\Core\Extension\ThemeHandlerInterface$theme_handlerThe theme handler.
\Drupal\Core\Render\RendererInterfaceThe renderer.

References Drupal\lock(), and Drupal\moduleHandler().

Here is the call graph for this function:

Member Function Documentation

buildForm ( array  $form,
FormStateInterface  $form_state 
)

{}

References StorageInterface\DEFAULT_COLLECTION, Url\fromRoute(), FormStateInterface\getUserInput(), FormStateInterface\set(), and t().

Here is the call graph for this function:

static create ( ContainerInterface  $container)
static

{}

static finishBatch (   $success,
  $results,
  $operations 
)
static

Finish batch.

This function is a static function to avoid serializing the ConfigSync object unnecessarily.

References Drupal\logger(), and Drupal\translation().

Here is the call graph for this function:

getFormId ( )

{}

static processBatch ( ConfigImporter  $config_importer,
  $sync_step,
$context 
)
static

Processes the config import batch and persists the importer.

Parameters
\Drupal\Core\Config\ConfigImporter$config_importerThe batch config importer object to persist.
string$sync_stepThe synchronization step to do.
array$contextThe batch context.

References ConfigImporter\doSyncStep(), and ConfigImporter\getErrors().

Here is the call graph for this function:

submitForm ( array &  $form,
FormStateInterface  $form_state 
)

{}

References batch_set(), FormStateInterface\get(), and t().

Here is the call graph for this function:


The documentation for this class was generated from the following file: