Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
44 | public function getTranslation($message, array $parameters = array(), LanguageDetectionInterface $languageDetection = null) |
||
45 | { |
||
46 | foreach ($this->translators as $translator) { |
||
47 | $tranlation = $translator->getTranslation($message, $parameters, $languageDetection); |
||
48 | if ($tranlation !== null) { |
||
49 | return $tranlation; |
||
50 | } |
||
51 | } |
||
52 | |||
53 | return; |
||
54 | } |
||
55 | } |
||
56 |