Skip to content

Commit 4a7cf16

Browse files
committed
embed_content.md: Match RelationController
1 parent d4b3637 commit 4a7cf16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/templating/embed_and_list_content/embed_content.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ You can use a custom controller for any situation where Query types aren't suffi
3636

3737
This configuration points to a custom `RelationController` that should render all Articles with the `showContentAction()` method.
3838

39-
``` php hl_lines="23 27 28"
39+
``` php hl_lines="25 29-35"
4040
[[= include_file('code_samples/front/embed_content/src/Controller/RelationController.php') =]]
4141
```
4242

43-
This controller uses the Public PHP API to get [the Relations of a content item](browsing_content.md#relations) (lines 27-28).
43+
This controller uses the Public PHP API to get [the Relations of a content item](browsing_content.md#relations) (lines 29-35).
4444

45-
The controller takes the custom parameter called `accepted_content_types` (line 23), which is an array of content type identifiers that are rendered.
45+
The controller takes the custom parameter called `accepted_content_types` (line 25), which is an array of content type identifiers that are rendered.
4646

4747
This way you can control which content types you want to show or exclude.
4848

0 commit comments

Comments
 (0)