for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\NewsBundle\Block\Breadcrumb;
use Sonata\BlockBundle\Block\BlockContextInterface;
use Sonata\SeoBundle\Block\Breadcrumb\BaseBreadcrumbMenuBlockService;
/**
* Abstract class for news breadcrumbs.
* @author Sylvain Deloux <[email protected]>
abstract class BaseNewsBreadcrumbBlockService extends BaseBreadcrumbMenuBlockService
{
protected function getRootMenu(BlockContextInterface $blockContext)
$menu = parent::getRootMenu($blockContext);
$menu->addChild('sonata_news_archive_breadcrumb', [
'route' => 'sonata_news_home',
'extras' => ['translation_domain' => 'SonataNewsBundle'],
]);
return $menu;
}