Deprecation: #75760 - Deprecate methods of LocalizationRepository

See Issue #75760

Description

The following methods have been marked as deprecated:

  • LocalizationRepository::getExcludeQueryPart()
  • LocalizationRepository::getAllowedLanguagesForBackendUser()

Impact

Using the mentioned methods will trigger a deprecation log entry

Affected Installations

Any installation with a 3rd party extension that uses one of the named methods.

Migration

Instead of LocalizationRepository::getExcludeQueryPart() configure the query restrictions yourself:

$queryBuilder->getRestrictions()
    ->removeAll()
    ->add(GeneralUtility::makeInstance(DeletedRestriction::class))
    ->add(GeneralUtility::makeInstance(BackendWorkspaceRestriction::class));

Instead of LocalizationRepository::getAllowedLanguagesForBackendUser() add the required conditions to your query yourself.