Document/Subscriber/ArticleSubscriber.php
public function handleRemovePage(RemoveEvent $event)
    {
        $document = $event->getDocument();
        if (!$document instanceof ArticlePageDocument) {
            return;
        }

        $document = $document->getParent();
        $this->documents[$document->getUuid()] = [
            'uuid' => $document->getUuid(),
            'locale' => $document->getLocale(),
        ];
    }
public function handleRemovePage(RemoveEvent $event)
    {
        $document = $event->getDocument();
        if (!$document instanceof ArticlePageDocument) {
            return;
        }

        $document = $document->getParent();
        $this->documents[$document->getUuid()] = [
            'uuid' => $document->getUuid(),
            'locale' => $document->getLocale(),
        ];
    }
public function handleRemovePage ( RemoveEvent $ event ) { $ document = $ event -> getDocument ( ) ; if ( ! $ document instanceof ArticlePageDocument ) { return ; } $ document = $ document -> getParent ( ) ; $ this -> documents [ $ document -> getUuid ( ) ] = [ 'uuid' => $ document -> getUuid ( ) , 'locale' => $ document -> getLocale ( ) , ] ; }
Reindex article if a page was removed.

@param RemoveEvent $event
Reindex article if a page was removed .