You are here

public function ConfigDistroController::diff in Config Distro 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 'ConfigDistroController::diff'
config_distro.routing.yml in ./config_distro.routing.yml
config_distro.routing.yml

File

src/Controller/ConfigDistroController.php, line 28

Class

ConfigDistroController
Returns responses for config module routes.

Namespace

Drupal\config_distro\Controller

Code

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