Document/Subscriber/ArticlePageSubscriber.php
public function setPageTitleOnPersist(PersistEvent $event)
    {
        $document = $event->getDocument();
        if (!$document instanceof ArticleInterface) {
            return;
        }

        $document->setPageTitle($this->getPageTitle($document));
    }
public function setPageTitleOnPersist(PersistEvent $event)
    {
        $document = $event->getDocument();
        if (!$document instanceof ArticleInterface) {
            return;
        }

        $document->setPageTitle($this->getPageTitle($document));
    }
public function setPageTitleOnPersist ( PersistEvent $ event ) { $ document = $ event -> getDocument ( ) ; if ( ! $ document instanceof ArticleInterface ) { return ; } $ document -> setPageTitle ( $ this -> getPageTitle ( $ document ) ) ; }
Set page-title on persist event.

@param PersistEvent $event
Set page - title on persist event .