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