Verified Commit 1d4e595a authored by Alberto Paderno's avatar Alberto Paderno
Browse files

Issue #3284034 by tim-diels: Unknown variable $modules in config_tools.module

parent 33a190c5
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -13,11 +13,10 @@
/**
 * Implements hook_modules_installed().
 */
function config_tools_modules_installed() {
function config_tools_modules_installed($modules) {
  $merged_modules = ['config_files', 'git_config'];
  if (!empty(array_intersect($modules, $merged_modules))) {
    \Drupal::messenger()
     ->addWarning(
    \Drupal::messenger()->addWarning(
      new TranslatableMarkup('The functionality of the Configuration Files and Git Configuration modules have been moved to the Configuration Tools module.') . ' ' .
      new TranslatableMarkup('Only the Configuration Tools module is necessary; the other modules are kept only to update to a stable release.')
    );
@@ -78,3 +77,4 @@ function config_tools_help($route_name, RouteMatchInterface $route_match) {

  return $output;
}