diff --git a/typo3/sysext/core/Classes/Site/Entity/SiteLanguage.php b/typo3/sysext/core/Classes/Site/Entity/SiteLanguage.php index 126155a1b010106dfd18d476a1765b75c5c0223a..f4092899afac2e675a0aeaf70eceb7432b588b31 100644 --- a/typo3/sysext/core/Classes/Site/Entity/SiteLanguage.php +++ b/typo3/sysext/core/Classes/Site/Entity/SiteLanguage.php @@ -223,7 +223,7 @@ class SiteLanguage */ public function getNavigationTitle(): string { - return $this->navigationTitle ?? $this->getTitle(); + return $this->navigationTitle ?: $this->getTitle(); } /** @@ -242,14 +242,6 @@ class SiteLanguage return $this->typo3Language; } - /** - * @return string - */ - public function getFallbackType(): string - { - return $this->fallbackType; - } - /** * Returns the ISO-639-1 language ISO code * @@ -257,7 +249,7 @@ class SiteLanguage */ public function getTwoLetterIsoCode(): string { - return $this->twoLetterIsoCode ?? ''; + return $this->twoLetterIsoCode; } /** @@ -267,7 +259,7 @@ class SiteLanguage */ public function getHreflang(): string { - return $this->hreflang ?? ''; + return $this->hreflang; } /** @@ -277,7 +269,15 @@ class SiteLanguage */ public function getDirection(): string { - return $this->direction ?? ''; + return $this->direction; + } + + /** + * @return string + */ + public function getFallbackType(): string + { + return $this->fallbackType; } /**