* * 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 */ 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; } }