Skip to content

Commit 86eaee1

Browse files
dabrtmnocon
authored andcommitted
Fix issues found in peer review
1 parent 0269c3a commit 86eaee1

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

docs/content_management/content_api/managing_content.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ To change the identifier of the copy, use a [`ContentTypeUpdateStruct`](/api/php
167167

168168
### Finding and filtering content types
169169

170-
You can find content types that match specific criteria by using the `ContentTypeService::findContentTypes()` method.
170+
You can find content types that match specific criteria by using the [`ContentTypeService::findContentTypes()`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-ContentTypeService.html#method_findContentTypes) method.
171171
This method accepts a `ContentTypeQuery` object that supports filtering and sorting by IDs, identifiers, group membership, and other criteria.
172172

173173
!!! note "Criterions and sort clauses"
@@ -177,8 +177,8 @@ This method accepts a `ContentTypeQuery` object that supports filtering and sort
177177

178178
The following example shows how you can use the criteria to find content types:
179179

180-
```php hl_lines="11-14"
181-
[[= include_file('code_samples/api/public_php_api/src/Command/FindContentTypeCommand.php', 17, 41) =]]
180+
```php hl_lines="28-39"
181+
[[= include_file('code_samples/api/public_php_api/src/Command/FindContentTypeCommand.php') =]]
182182
```
183183

184184
#### Query parameters

docs/search/content_type_search_reference/content_type_criteria.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ month_change: true
66

77
# Content Type Search Criteria reference
88

9-
Content Type Search Criteria are only supported by Content Type Search (`ContentTypeService::findContentTypes`).
9+
Content Type Search Criteria are only supported by [Content Type Search (`ContentTypeService::findContentTypes`)](managing_content.md#finding-and-filtering-content-types).
1010

1111
| Criterion | Description |
1212
|-------|-------------|
@@ -19,4 +19,8 @@ Content Type Search Criteria are only supported by Content Type Search (`Content
1919
| [LogicalOr](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-ContentType-Query-Criterion-LogicalOr.html) | Implements a logical OR Criterion. It matches if at least one of the provided Criteria matches. |
2020
| [LogicalNot](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-ContentType-Query-Criterion-LogicalNot.html) | Implements a logical NOT Criterion. It matches if the provided Criterion doesn't match. |
2121

22-
For an example that shows how you can use the criteria to find content types, see [Finding and filtering content types](managing_content.md#finding-and-filtering-content-types).
22+
The following example shows how to use them to search for content types:
23+
24+
```php hl_lines="29-31"
25+
[[= include_file('code_samples/api/public_php_api/src/Command/FindContentTypeCommand.php') =]]
26+
```

docs/search/content_type_search_reference/content_type_sort_clauses.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ month_change: true
88
Content Type Search Sort Clauses are the sorting options for content types.
99
They're only supported by [Content Type Search (`ContentTypeService::findContentTypes`)](managing_content.md#finding-and-filtering-content-types).
1010

11-
Sort Clauses are found in the [`Ibexa\Contracts\Core\Repository\Values\ContentType\Query\SortClause`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-ContentType-Query-SortClause.html) namespace:
11+
Sort Clauses are found in the [`Ibexa\Contracts\Core\Repository\Values\ContentType\Query\SortClause`](/api/php_api/php_api_reference/namespaces/ibexa-contracts-core-repository-values-contenttype-query-sortclause.html) namespace:
1212

1313
| Name | Description |
1414
| --- | --- |
@@ -17,10 +17,10 @@ Sort Clauses are found in the [`Ibexa\Contracts\Core\Repository\Values\ContentTy
1717
| [Name](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-ContentType-Query-SortClause-Name.html)| Sort by content type's name |
1818

1919

20-
The following example shows how to use them to sort the searched content items:
20+
The following example shows how to use them to sort the searched content types:
2121

22-
```php hl_lines="17-19"
23-
[[= include_file('code_samples/api/public_php_api/src/Command/FindContentTypeCommand.php', 17, 41) =]]
22+
```php hl_lines="34-36"
23+
[[= include_file('code_samples/api/public_php_api/src/Command/FindContentTypeCommand.php') =]]
2424
```
2525

2626
You can change the default sorting order by using the `SORT_ASC` and `SORT_DESC` constants from [`AbstractSortClause`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-CoreSearch-Values-Query-AbstractSortClause.html#constants).

0 commit comments

Comments
 (0)