Skip to content

Commit d8fdc52

Browse files
author
Bjorn Van Acker
committed
Make the docs more clear on the ussage
1 parent 0f3334a commit d8fdc52

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/development/breadcrumb.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,21 @@ public function book(Author $author): Response
138138
}
139139
```
140140

141+
142+
It's also possible to add paramters to the translation.
143+
144+
```yaml
145+
breadcrumb.authors: 'Author: %name%'
146+
```
147+
148+
```php
149+
#[Route('/authors/{author}', name:'authors')]
150+
#[Breadcrumb('breadcrumb.authors', parameters: ['%name%' => 'author.name
151+
public function book(Author $author): Response
152+
{
153+
}
154+
```
155+
141156
## Full example
142157
Auteurs > J.K. Rowling > Harry Potter
143158

0 commit comments

Comments
 (0)