Verified Commit 6e1ee72f authored by Dave Long's avatar Dave Long
Browse files

fix: #3622031 Content Translation shows a confusing set of warnings even when config is syncing

By: phenaproxima
By: gábor hojtsy
parent 448cc516
Loading
Loading
Loading
Loading
+4 −3
Changes for core/modules/content_translation/content_translation.install: 4 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -12,14 +12,15 @@
/**
 * Implements hook_install().
 */
function content_translation_install(): void {
function content_translation_install(bool $is_syncing): void {
  // Assign a fairly low weight to ensure our Order directive is run among the
  // last ones.
  \Drupal::service(ModuleWeight::class)->set('content_translation', 10);

  // Skip the guidance messages about enabling translation features if the
  // module was installed in the Drupal installation process.
  if (InstallerKernel::installationAttempted()) {
  // module was installed in the Drupal installation process or a config
  // sync.
  if (InstallerKernel::installationAttempted() || $is_syncing) {
    return;
  }