Skip to content

Commit fe4b07c

Browse files
committed
Merge branch '5.0' into 5.0-relationlistiterator
2 parents 4a7cf16 + d791ae7 commit fe4b07c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/content_management/content_api/browsing_content.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,14 @@ All object state groups can be retrieved through [`loadObjectStateGroups`](/api/
150150

151151
To retrieve the fields of the selected content item, you can use the following command:
152152

153-
```php hl_lines="13-14 16-22"
153+
```php hl_lines="9-10 12-19"
154154
[[= include_file('code_samples/api/public_php_api/src/Command/ViewContentCommand.php', 4, 7) =]] // ...
155155
[[= include_file('code_samples/api/public_php_api/src/Command/ViewContentCommand.php', 42, 60) =]]
156156
}
157157
```
158158

159159
Line 9 shows how [`ContentService::loadContent`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-ContentService.html#method_loadContent) loads the content item provided to the command.
160-
Line 14 makes use of the [`ContentTypeService`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-ContentTypeService.html) to retrieve the content type of the requested item.
160+
Line 10 makes use of the [`ContentTypeService`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-ContentTypeService.html) to retrieve the content type of the requested item.
161161

162162
Lines 12-19 iterate over fields defined by the content type.
163163
For each field they print out its identifier, and then using [`FieldTypeService`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-FieldTypeService.html) retrieve the field's value and print it out to the console.

0 commit comments

Comments
 (0)