sonata-project / SonataSeoBundle

Symfony SonataSeoBundle
https://docs.sonata-project.org/projects/SonataSeoBundle
MIT License
137 stars 90 forks source link

Fix breadcrumb rendering #620

Closed core23 closed 3 years ago

core23 commented 3 years ago

Subject

The execute method was missing, so the breadcrumb was rendered as an empty block.

This is basically a soft-port of https://github.com/sonata-project/SonataBlockBundle/blob/4.x/src/Block/Service/MenuBlockService.php.

I am targeting this branch, because this is a patch for the next stable release.

Changelog

### Changed
- Mark `BaseBreadcrumbMenuBlockService::getRootMenu()` as final

### Fixed
- Fixed breadcrumb rendering
core23 commented 3 years ago

Same as https://github.com/sonata-project/SonataSeoBundle/pull/619, but targeting the right branch