src/Component/Translation/Repository/Doctrine/MongoDB/TranslatableRepository.php 1 location
|
@@ 122-131 (lines=10) @@
|
| 119 |
|
/** |
| 120 |
|
* @return string[] |
| 121 |
|
*/ |
| 122 |
|
private function getLocales() |
| 123 |
|
{ |
| 124 |
|
$locales = $this->localeContext->getLocales(); |
| 125 |
|
|
| 126 |
|
if (($fallbackLocale = $this->localeContext->getFallbackLocale()) !== null) { |
| 127 |
|
$locales[] = $fallbackLocale; |
| 128 |
|
} |
| 129 |
|
|
| 130 |
|
return $locales; |
| 131 |
|
} |
| 132 |
|
} |
| 133 |
|
|
src/Component/Translation/Repository/Doctrine/ORM/TranslatableRepository.php 1 location
|
@@ 158-167 (lines=10) @@
|
| 155 |
|
/** |
| 156 |
|
* @return string[] |
| 157 |
|
*/ |
| 158 |
|
private function getLocales() |
| 159 |
|
{ |
| 160 |
|
$locales = $this->localeContext->getLocales(); |
| 161 |
|
|
| 162 |
|
if (($fallbackLocale = $this->localeContext->getFallbackLocale()) !== null) { |
| 163 |
|
$locales[] = $fallbackLocale; |
| 164 |
|
} |
| 165 |
|
|
| 166 |
|
return $locales; |
| 167 |
|
} |
| 168 |
|
} |
| 169 |
|
|