We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The default language id may be not 0, but any defined by languageId in first entry of languages in site config.yaml, See also:
languageId
languages
\TYPO3\CMS\Core\Site\Entity\Site::getDefaultLanguage()
public function getDefaultLanguage(): SiteLanguage { return reset($this->languages); }
What should be done in the scope of this task?
All usages of 0 as default language id must be replaced by $typo3SiteObject->getDefaultLanguage()->getLanguageId();.
$typo3SiteObject->getDefaultLanguage()->getLanguageId();
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The default language id may be not 0, but any defined by
languageId
in first entry oflanguages
in site config.yaml, See also:\TYPO3\CMS\Core\Site\Entity\Site::getDefaultLanguage()
What should be done in the scope of this task?
All usages of 0 as default language id must be replaced by
$typo3SiteObject->getDefaultLanguage()->getLanguageId();
.Note: In TYPO3 core it is still not decided how to handle explicit:
https://review.typo3.org/c/Packages/TYPO3.CMS/+/66052
https://review.typo3.org/c/Packages/TYPO3.CMS/+/62779
The text was updated successfully, but these errors were encountered: