Skip to content

Commit d791ae7

Browse files
committed
4.6 browsing_content.md: Fix line numbers (#2778)
1 parent df99c4c commit d791ae7

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
@@ -149,14 +149,14 @@ All object state groups can be retrieved through [`loadObjectStateGroups`](/api/
149149

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

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

158158
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.
159-
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.
159+
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.
160160

161161
Lines 12-19 iterate over fields defined by the content type.
162162
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)