Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/translation/LoggingTranslator.php @ 12:7a779792577d
Update Drupal core to v8.4.5 (via Composer)
author | Chris Cannam |
---|---|
date | Fri, 23 Feb 2018 15:52:07 +0000 |
parents | 4c8ae668cc8c |
children | 1fec387a4317 |
comparison
equal
deleted
inserted
replaced
11:bfffd8d7479a | 12:7a779792577d |
---|---|
94 * | 94 * |
95 * @return array $locales The fallback locales | 95 * @return array $locales The fallback locales |
96 */ | 96 */ |
97 public function getFallbackLocales() | 97 public function getFallbackLocales() |
98 { | 98 { |
99 if ($this->translator instanceof Translator) { | 99 if ($this->translator instanceof Translator || method_exists($this->translator, 'getFallbackLocales')) { |
100 return $this->translator->getFallbackLocales(); | 100 return $this->translator->getFallbackLocales(); |
101 } | 101 } |
102 | 102 |
103 return array(); | 103 return array(); |
104 } | 104 } |