1234567891011121314151617181920212223242526272829303132333435363738 |
- <?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;
- use Sonata\SeoBundle\Block\Breadcrumb\BaseBreadcrumbMenuBlockService;
- /**
- * Abstract class for user breadcrumbs.
- *
- * @author Sylvain Deloux <sylvain.deloux@ekino.com>
- */
- abstract class BaseUserProfileBreadcrumbBlockService extends BaseBreadcrumbMenuBlockService
- {
- /**
- * {@inheritdoc}
- */
- protected function getRootMenu(BlockContextInterface $blockContext)
- {
- $menu = parent::getRootMenu($blockContext);
- $menu->addChild('sonata_user_profile_breadcrumb_index', array(
- 'route' => 'sonata_user_profile_show',
- 'extras' => array('translation_domain' => 'SonataUserBundle'),
- ));
- return $menu;
- }
- }
|