You are here

public function ConfigSyncController::diff in Configuration Synchronizer 8

Shows diff of specified configuration file.

Parameters

string $source_name: The name of the configuration file.

string $target_name: (optional) The name of the target configuration file if different from the $source_name.

string $collection: (optional) The configuration collection name. Defaults to the default collection.

Return value

array Table showing a two-way diff between the active and staged configuration.

Overrides ConfigController::diff

1 string reference to 'ConfigSyncController::diff'
config_sync.routing.yml in ./config_sync.routing.yml
config_sync.routing.yml

File

src/Controller/ConfigSyncController.php, line 28

Class

ConfigSyncController
Returns responses for config module routes.

Namespace

Drupal\config_sync\Controller

Code

public function diff($source_name, $target_name = NULL, $collection = NULL) {
  $build = parent::diff($source_name, $target_name = NULL, $collection = NULL);
  $build['back']['#url'] = Url::fromRoute('config_sync.import');
  return $build;
}