UserIndexBreadcrumbBlockService.php 863 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /*
  3. * This file is part of the Sonata Project package.
  4. *
  5. * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Sonata\UserBundle\Block\Breadcrumb;
  11. use Sonata\BlockBundle\Block\BlockContextInterface;
  12. /**
  13. * Class for user breadcrumbs.
  14. *
  15. * @author Sylvain Deloux <sylvain.deloux@ekino.com>
  16. */
  17. class UserIndexBreadcrumbBlockService extends BaseUserProfileBreadcrumbBlockService
  18. {
  19. /**
  20. * {@inheritdoc}
  21. */
  22. public function getName()
  23. {
  24. return 'sonata.user.block.breadcrumb_index';
  25. }
  26. /**
  27. * {@inheritdoc}
  28. */
  29. protected function getMenu(BlockContextInterface $blockContext)
  30. {
  31. $menu = $this->getRootMenu($blockContext);
  32. return $menu;
  33. }
  34. }