<?php
namespace App\EventListener;
use Pimcore\Event\BundleManager\PathsEvent;
use Pimcore\Event\BundleManagerEvents;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class AdminAssetsListener implements EventSubscriberInterface
{
public static function getSubscribedEvents(): array
{
return [
BundleManagerEvents::EDITMODE_CSS_PATHS => 'getEditmodeCssPaths'
];
}
public function getEditmodeCssPaths(PathsEvent $pathsEvent)
{
$pathsEvent->setPaths(array_merge($pathsEvent->getPaths(), [
'/admin/css/document-editmode.css'
]));
}
}