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

            $document = $document->getParent();
        }

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

            $document = $document->getParent();
        }

        $this->documents[$document->getUuid()] = [
            'uuid' => $document->getUuid(),
            'locale' => $document->getLocale(),
        ];
    }
public function handleScheduleIndex ( AbstractMappingEvent $ event ) { $ document = $ event -> getDocument ( ) ; if ( ! $ document instanceof ArticleDocument ) { if ( ! $ document instanceof ArticlePageDocument ) { return ; } $ document = $ document -> getParent ( ) ; } $ this -> documents [ $ document -> getUuid ( ) ] = [ 'uuid' => $ document -> getUuid ( ) , 'locale' => $ document -> getLocale ( ) , ] ; }
Schedule article document for index.

@param AbstractMappingEvent $event
Schedule article document for index .