public function preRemove(LifecycleEventArgs $event)
    {
        $event = new DeindexEvent($event->getEntity());
        $this->eventDispatcher->dispatch(SearchEvents::DEINDEX, $event);
    }
public function preRemove(LifecycleEventArgs $event)
    {
        $event = new DeindexEvent($event->getEntity());
        $this->eventDispatcher->dispatch(SearchEvents::DEINDEX, $event);
    }
public function preRemove ( LifecycleEventArgs $ event ) { $ event = new DeindexEvent ( $ event -> getEntity ( ) ) ; $ this -> eventDispatcher -> dispatch ( SearchEvents :: DEINDEX , $ event ) ; }
Deindex entities after they have been removed.

@param LifecycleEventArgs $event
Deindex entities after they have been removed .