src/Sulu/Component/Content/Document/Subscriber/Compat/ContentMapperSubscriber.php
public function handlePreRemove(RemoveEvent $event)
    {
        $document = $event->getDocument();

        if (!$this->supports($document)) {
            return;
        }

        $event = $this->getDeleteEvent($document);
        $this->deleteEvents[spl_object_hash($document)] = $event;
        $this->eventDispatcher->dispatch(
            ContentEvents::NODE_PRE_DELETE,
            $event
        );
    }
public function handlePreRemove(RemoveEvent $event)
    {
        $document = $event->getDocument();

        if (!$this->supports($document)) {
            return;
        }

        $event = $this->getDeleteEvent($document);
        $this->deleteEvents[spl_object_hash($document)] = $event;
        $this->eventDispatcher->dispatch(
            ContentEvents::NODE_PRE_DELETE,
            $event
        );
    }
public function handlePreRemove ( RemoveEvent $ event ) { $ document = $ event -> getDocument ( ) ; if ( ! $ this -> supports ( $ document ) ) { return ; } $ event = $ this -> getDeleteEvent ( $ document ) ; $ this -> deleteEvents [ spl_object_hash ( $ document ) ] = $ event ; $ this -> eventDispatcher -> dispatch ( ContentEvents :: NODE_PRE_DELETE , $ event ) ; }
Dispatches the deprecated pre remove event.

@param RemoveEvent $event
Dispatches the deprecated pre remove event .