Feature: #97926 - Configure Extbase Persistence Language via LanguageAspect

See forge#97926


Extbase's persistence functionality allows to configure the ORM queries via QuerySettings.

QuerySettings now accept to use a custom LanguageAspect (known from the Context API) to define the language ID and the overlay behaviour.

This is more consistent to other places within TYPO3 Core to define translation behaviour when querying records.


You can now specify a custom Language Aspect per query as defined in the query settings in any Repository class:

Example to use the fallback to the default language when working with overlays:

$query = $this->createQuery();
    new LanguageAspect(2, 2, LanguageAspect::OVERLAYS_MIXED)