diff -u b/core/lib/Drupal/Core/Config/ConfigImportValidateEventSubscriberBase.php b/core/lib/Drupal/Core/Config/ConfigImportValidateEventSubscriberBase.php --- b/core/lib/Drupal/Core/Config/ConfigImportValidateEventSubscriberBase.php +++ b/core/lib/Drupal/Core/Config/ConfigImportValidateEventSubscriberBase.php @@ -16,23 +16,6 @@ abstract class ConfigImportValidateEventSubscriberBase implements EventSubscriberInterface { /** - * The translation manager. - * - * @var \Drupal\Core\StringTranslation\TranslationInterface - */ - protected $translationManager; - - /** - * Constructs the SystemConfigSubscriber object. - * - * @param \Drupal\Core\StringTranslation\TranslationInterface $translation_manager - * The translation manager. - */ - public function __construct(TranslationInterface $translation_manager) { - $this->translationManager = $translation_manager; - } - - /** * Checks that the configuration synchronization is valid. * * @param ConfigImporterEvent $event @@ -70,5 +53,5 @@ */ protected function t($string, array $args = array(), array $options = array()) { - return $this->translationManager->translate($string, $args, $options); + return \Drupal::translation()->translate($string, $args, $options); } }