List of place where we can inject injection if possible
grep -nri '\Drupal::l...

Contribution Date
Technology
Contribution Project
Contribution Details

List of place where we can inject injection if possible

grep -nri '\Drupal::languageManager()' core | grep -v .module | grep -vi test | grep -v .api.php | grep -v authorize.php | grep -v .inc core/lib/Drupal/Core/TypedData/Plugin/DataType/Language.php:41: $this->language = \Drupal::languageManager()->getLanguage($this->id); core/lib/Drupal/Core/Datetime/DrupalDateTime.php:84: $settings['langcode'] = \Drupal::languageManager()->getCurrentLanguage()->getId(); core/lib/Drupal/Core/Entity/EntityBase.php:91: return \Drupal::languageManager(); core/lib/Drupal/Core/Entity/Sql/SqlFieldableEntityTypeListenerTrait.php:200: $entity->set($langcode_key, \Drupal::languageManager()->getDefaultLanguage()->getId()); core/lib/Drupal/Core/Render/Element/MachineName.php:129: $language = \Drupal::languageManager()->getCurrentLanguage(); core/lib/Drupal/Core/Field/Plugin/Field/FieldType/LanguageItem.php:91: $this->setValue(['value' => \Drupal::languageManager()->getDefaultLanguage()->getId()], $notify); core/lib/Drupal/Core/Field/Plugin/Field/FieldType/LanguageItem.php:119: $languages = array_keys(\Drupal::languageManager()->getLanguages(LanguageInterface::STATE_ALL)); core/lib/Drupal/Core/Field/Plugin/Field/FieldType/LanguageItem.php:129: return array_keys(\Drupal::languageManager()->getLanguages(LanguageInterface::STATE_ALL)); core/lib/Drupal/Core/Field/Plugin/Field/FieldType/LanguageItem.php:136: $languages = \Drupal::languageManager()->getLanguages(LanguageInterface::STATE_ALL); core/lib/Drupal/Core/Field/FormatterBase.php:87: $langcode = \Drupal::languageManager()->getCurrentLanguage(LanguageInterface::TYPE_CONTENT)->getId(); core/lib/Drupal/Core/Routing/RouteProvider.php:134: $this->languageManager = $language_manager ?: \Drupal::languageManager(); core/lib/Drupal/Core/Validation/DrupalTranslator.php:69: return $this->locale ? $this->locale : \Drupal::languageManager()->getCurrentLanguage()->getId(); core/lib/Drupal/Core/Session/UserSession.php:132: $language_list = \Drupal::languageManager()->getLanguages(); core/lib/Drupal/Core/Session/UserSession.php:137: return $fallback_to_default ? \Drupal::languageManager()->getDefaultLanguage()->getId() : ''; core/lib/Drupal/Core/Session/UserSession.php:145: $language_list = \Drupal::languageManager()->getLanguages(); core/lib/Drupal/Core/Session/UserSession.php:150: return $fallback_to_default ? \Drupal::languageManager()->getDefaultLanguage()->getId() : '';

Kindly review a patch.

Contribution Author
Files count
1
Patches count
1