src/Component/Translation/Repository/Doctrine/MongoDB/TranslatableRepository.php 1 location
|
@@ 95-104 (lines=10) @@
|
| 92 |
|
/** |
| 93 |
|
* @return string[] |
| 94 |
|
*/ |
| 95 |
|
private function getLocales() |
| 96 |
|
{ |
| 97 |
|
$locales = $this->localeContext->getLocales(); |
| 98 |
|
|
| 99 |
|
if (($fallbackLocale = $this->localeContext->getFallbackLocale()) !== null) { |
| 100 |
|
$locales[] = $fallbackLocale; |
| 101 |
|
} |
| 102 |
|
|
| 103 |
|
return $locales; |
| 104 |
|
} |
| 105 |
|
} |
| 106 |
|
|
src/Component/Translation/Repository/Doctrine/ORM/TranslatableRepository.php 1 location
|
@@ 133-142 (lines=10) @@
|
| 130 |
|
/** |
| 131 |
|
* @return string[] |
| 132 |
|
*/ |
| 133 |
|
private function getLocales() |
| 134 |
|
{ |
| 135 |
|
$locales = $this->localeContext->getLocales(); |
| 136 |
|
|
| 137 |
|
if (($fallbackLocale = $this->localeContext->getFallbackLocale()) !== null) { |
| 138 |
|
$locales[] = $fallbackLocale; |
| 139 |
|
} |
| 140 |
|
|
| 141 |
|
return $locales; |
| 142 |
|
} |
| 143 |
|
} |
| 144 |
|
|