comparison vendor/symfony/translation/DataCollectorTranslator.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
95 * 95 *
96 * @return array $locales The fallback locales 96 * @return array $locales The fallback locales
97 */ 97 */
98 public function getFallbackLocales() 98 public function getFallbackLocales()
99 { 99 {
100 if ($this->translator instanceof Translator) { 100 if ($this->translator instanceof Translator || method_exists($this->translator, 'getFallbackLocales')) {
101 return $this->translator->getFallbackLocales(); 101 return $this->translator->getFallbackLocales();
102 } 102 }
103 103
104 return array(); 104 return array();
105 } 105 }