Configurable
ReplaceLocaleTranslationPathConfigRector
Replace deprecated \Drupal::config('locale.settings')->get('translation.path') with Settings::get('locale_translation_path')
-\Drupal::config('locale.settings')->get('translation.path');
+\Drupal\Core\Site\Settings::get('locale_translation_path', 'public://translations');
Configure your rector.php:
<?php
use DrupalRector\Drupal11\Rector\Deprecation\ReplaceLocaleTranslationPathConfigRector;
use DrupalRector\Rector\ValueObject\DrupalIntroducedVersionConfiguration;
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withConfiguredRule(ReplaceLocaleTranslationPathConfigRector::class, [
new DrupalIntroducedVersionConfiguration('11.4.0'),
]);