123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- /*
- * This file is part of the Sonata Project package.
- *
- * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- namespace Sonata\UserBundle\Block\Breadcrumb;
- use Sonata\BlockBundle\Block\BlockContextInterface;
- /**
- * Class for user breadcrumbs.
- *
- * @author Sylvain Deloux <sylvain.deloux@ekino.com>
- */
- class UserProfileBreadcrumbBlockService extends BaseUserProfileBreadcrumbBlockService
- {
- /**
- * {@inheritdoc}
- */
- public function getName()
- {
- return 'sonata.user.block.breadcrumb_profile';
- }
- /**
- * {@inheritdoc}
- */
- protected function getMenu(BlockContextInterface $blockContext)
- {
- $menu = $this->getRootMenu($blockContext);
- $menu->addChild('sonata_user_profile_breadcrumb_edit', array(
- 'route' => 'sonata_user_profile_edit',
- 'extras' => array('translation_domain' => 'SonataUserBundle'),
- ));
- return $menu;
- }
- }
|