Ibexa DXP Discussions

Community discussion forum for developers working with Ibexa DXP

Create new button within the admin content right sidebar

I want to add a new button within the admin content right sidebar.
I tried to follow the basic start from eZ documentation, but there is no example for content right sidebar.

For the moment, I`ve created a subscriber:

namespace AppBundle\EventListener;

use EzSystems\EzPlatformAdminUi\Menu\Event\ConfigureMenuEvent;
use EzSystems\EzPlatformAdminUi\Menu\MainMenuBuilder;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;

class ClearCacheButtonMenuListener implements EventSubscriberInterface
    public static function getSubscribedEvents()
        return [
            ConfigureMenuEvent::CONTENT_SIDEBAR_RIGHT => ['onMenuConfigure', 0],

    public function onMenuConfigure(ConfigureMenuEvent $event)
        $menu = $event->getMenu();

        $factory = $event->getFactory();
        $options = $event->getOptions();


and I`ve registered it within the services.yml:

    class: AppBundle\EventListener\ClearCacheButtonMenuListener
        - { name: kernel.event.subscriber }

Just for start, I would like that this new button to be available for all content types, but the main target is to show it only for specific content types.
Any hints are welcome.