Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rvanlaak authored Nov 29, 2021
1 parent 6c152b4 commit d70dc57
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Resources/doc/annotation_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,17 +284,18 @@ Will render the following breadcrumb trail :

### Reset the trail

Passing an breadcrumb without any parameter values will remove all existing
Adding a ResetBreadcrumbTrail attribute will remove all existing
breadcrumbs from the trail.

Resetting might come in handy in case the controller class unwantedly defines
breadcrumbs already.

```php
use APY\BreadcrumbTrailBundle\Annotation\Breadcrumb;
use APY\BreadcrumbTrailBundle\Annotation\ResetBreadcrumbTrail;

#[Breadcrumb("Level 1")]
#[Breadcrumb()]
#[ResetBreadcrumbTrail()]
#[Breadcrumb("Level 2")]
#[Breadcrumb("Level 3")]
```
Expand Down

0 comments on commit d70dc57

Please sign in to comment.