Skip to content
Snippets Groups Projects
Commit 7b8d4375 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2239425 by cs_shadow, Mixologic, JacobSanford | penyaskito: Invalid...

Issue #2239425 by cs_shadow, Mixologic, JacobSanford | penyaskito: Invalid TranslatorInterface type hinting in LanguageRequestSubscriber.
parent 406da319
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -27,7 +27,7 @@ class TranslationManager implements TranslationInterface, TranslatorInterface {
* An array of active translators keyed by priority.
*
* @var array
* Array of \Drupal\Core\Translation\Translator\TranslatorInterface objects
* Array of \Drupal\Core\StringTranslation\Translator\TranslatorInterface objects
*/
protected $translators = array();
......@@ -77,12 +77,12 @@ public function initLanguageManager() {
/**
* Appends a translation system to the translation chain.
*
* @param \Drupal\Core\Translation\Translator\TranslatorInterface $translator
* @param \Drupal\Core\StringTranslation\Translator\TranslatorInterface $translator
* The translation interface to be appended to the translation chain.
* @param int $priority
* The priority of the logger being added.
*
* @return \Drupal\Core\Translation\TranslationManager
* @return \Drupal\Core\StringTranslation\TranslationManager
* The called object.
*/
public function addTranslator(TranslatorInterface $translator, $priority = 0) {
......
......@@ -38,7 +38,7 @@ class LanguageRequestSubscriber implements EventSubscriberInterface {
/**
* The translation service.
*
* @var \Drupal\Core\Translation\Translator\TranslatorInterface
* @var \Drupal\Core\StringTranslation\Translator\TranslatorInterface;
*/
protected $translation;
......@@ -56,7 +56,7 @@ class LanguageRequestSubscriber implements EventSubscriberInterface {
* The language manager service.
* @param \Drupal\language\LanguageNegotiatorInterface
* The language negotiator.
* @param \Drupal\Core\Translation\Translator\TranslatorInterface $translation
* @param \Drupal\Core\StringTranslation\Translator\TranslatorInterface $translation;
* The translation service.
* @param \Drupal\Core\Session\AccountInterface $current_user
* The current active user.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment