Verified Commit de51a841 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
(cherry picked from commit 6e1ee72f)
(cherry picked from commit e1fc6985)
parent 71612275
Loading
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
@@ -11,14 +11,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 implementation of
  // hook_module_implements_alter() is run among the last ones.
  module_set_weight('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;
  }