Skip to content

Commit 0c9afc8

Browse files
committed
languagecode_criterion.md: Use regular Query w/ findContent
1 parent 23fbf48 commit 0c9afc8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/search/criteria_reference/languagecode_criterion.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,13 @@ You can use the `LanguageCode` Criterion to search for articles that are lacking
4545
into a specific language:
4646

4747
``` php hl_lines="5"
48-
$query = new LocationQuery;
48+
$query = new Query();
4949
$query->query = new Criterion\LogicalAnd([
5050
new Criterion\ContentTypeIdentifier('article'),
5151
new Criterion\LogicalNot(
5252
new Criterion\LanguageCode('ger-DE', false)
5353
)
54-
]
55-
);
54+
]);
5655

5756
$results = $this->searchService->findContent($query);
5857
$articles = [];

0 commit comments

Comments
 (0)