Skip to content

Commit f74bdc1

Browse files
authored
IBX-10937: Document the ContentTypeGroupName criterion for Find CTs API (#2955)
1 parent dd2d4ea commit f74bdc1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

code_samples/api/public_php_api/src/Command/FindContentTypeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
2727
// Find content types from the "Content" group that contains a specific field definition (in this case, a "Body" field).
2828
$query = new ContentTypeQuery(
2929
new Criterion\LogicalAnd([
30-
new Criterion\ContentTypeGroupId([1]),
30+
new Criterion\ContentTypeGroupName(['Content']),
3131
new Criterion\ContainsFieldDefinitionId([121]),
3232
]),
3333
[

docs/search/content_type_search_reference/content_type_criteria.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Content Type Search Criteria are only supported by [Content Type Search (`Conten
1212
|-------|-------------|
1313
| [ContainsFieldDefinitionId](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-ContentType-Query-Criterion-ContainsFieldDefinitionId.html) | Matches content types that contain a field definition with the specified ID. |
1414
| [ContentTypeGroupId](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-ContentType-Query-Criterion-ContentTypeGroupId.html) | Matches content types by their assigned group ID. |
15+
| [ContentTypeGroupName](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-ContentType-Query-Criterion-ContentTypeGroupName.html) | Matches content types by the name of their assigned group. |
1516
| [ContentTypeId](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-ContentType-Query-Criterion-ContentTypeId.html) | Matches content types by their ID. |
1617
| [ContentTypeIdentifier](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-ContentType-Query-Criterion-ContentTypeIdentifier.html) | Matches content types by their identifier. |
1718
| [IsSystem](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-ContentType-Query-Criterion-IsSystem.html) | Matches content types based on whether the group they belong to is system or not. |

0 commit comments

Comments
 (0)