src/Component/Translation/Repository/Doctrine/MongoDB/TranslatableRepositoryTrait.php 1 location
|
@@ 103-112 (lines=10) @@
|
| 100 |
|
/** |
| 101 |
|
* @return string[] |
| 102 |
|
*/ |
| 103 |
|
private function getLocales() |
| 104 |
|
{ |
| 105 |
|
$locales = $this->localeContext->getLocales(); |
| 106 |
|
|
| 107 |
|
if (($fallbackLocale = $this->localeContext->getFallbackLocale()) !== null) { |
| 108 |
|
$locales[] = $fallbackLocale; |
| 109 |
|
} |
| 110 |
|
|
| 111 |
|
return $locales; |
| 112 |
|
} |
| 113 |
|
} |
| 114 |
|
|
src/Component/Translation/Repository/Doctrine/ORM/TranslatableRepositoryTrait.php 1 location
|
@@ 145-154 (lines=10) @@
|
| 142 |
|
/** |
| 143 |
|
* @return string[] |
| 144 |
|
*/ |
| 145 |
|
private function getLocales() |
| 146 |
|
{ |
| 147 |
|
$locales = $this->localeContext->getLocales(); |
| 148 |
|
|
| 149 |
|
if (($fallbackLocale = $this->localeContext->getFallbackLocale()) !== null) { |
| 150 |
|
$locales[] = $fallbackLocale; |
| 151 |
|
} |
| 152 |
|
|
| 153 |
|
return $locales; |
| 154 |
|
} |
| 155 |
|
} |
| 156 |
|
|