---
title: "Deprecation: #75760 - Deprecate methods of LocalizationRepository"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-75760"
source: "Changelog/8.2/Deprecation-75760-DeprecateMethodsOfLocalizationRepository.rst"
typo3-version: "8.2"
typo3-major: 8
type: "deprecation"
issue: 75760
forge: "https://forge.typo3.org/issues/75760"
tags: ["PHP-API", "Backend", "Database"]
rendered: "2026-09-18T17:00:34+00:00"
---

# Deprecation: #75760 - Deprecate methods of LocalizationRepository {#deprecation-75760}

See [forge#75760](https://forge.typo3.org/issues/75760)

## Description {#description}

The following methods have been marked as deprecated:

-   `LocalizationRepository::getExcludeQueryPart()`
-   `LocalizationRepository::getAllowedLanguagesForBackendUser()`

## Impact {#impact}

Using the mentioned methods will trigger a deprecation log entry

## Affected Installations {#affected-installations}

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

## Migration {#migration}

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

```php
$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.
