Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Sep 27, 2022
1 parent c332e40 commit 276bdf3
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/Block/Breadcrumb/BaseBreadcrumbMenuBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
use Knp\Menu\ItemInterface;
use Sonata\BlockBundle\Block\BlockContextInterface;
use Sonata\BlockBundle\Block\Service\AbstractMenuBlockService;
use Sonata\BlockBundle\Meta\Metadata;
use Sonata\BlockBundle\Meta\MetadataInterface;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\OptionsResolver\OptionsResolver;
Expand Down Expand Up @@ -51,7 +53,7 @@ public function configureSettings(OptionsResolver $resolver): void
protected function getFormSettingsKeys(): array
{
return array_merge(
parent::getFormSettingsKeys(), // TODO: Remove the menu_template
parent::getFormSettingsKeys(),
[
['include_homepage_link', CheckboxType::class, [
'required' => false,
Expand All @@ -72,6 +74,16 @@ protected function getFormSettingsKeys(): array
);
}

/**
* NEXT_MAJOR: Remove this method.
*/
public function getMetadata(): MetadataInterface
{
return new Metadata('sonata.block.service.menu', null, null, 'SonataBlockBundle', [
'class' => 'fa fa-bars',
]);
}

protected function getMenu(BlockContextInterface $blockContext): ItemInterface
{
$settings = $blockContext->getSettings();
Expand Down

0 comments on commit 276bdf3

Please sign in to comment.