Document/Subscriber/PageSubscriber.php
public function handlePublishPageNumber(PublishEvent $event)
    {
        $document = $event->getDocument();
        $node = $event->getNode();
        $propertyName = $this->propertyEncoder->systemName(static::FIELD);
        if (!$document instanceof PageBehavior) {
            return;
        }

        $node->setProperty($propertyName, $document->getPageNumber());
    }
public function handlePublishPageNumber(PublishEvent $event)
    {
        $document = $event->getDocument();
        $node = $event->getNode();
        $propertyName = $this->propertyEncoder->systemName(static::FIELD);
        if (!$document instanceof PageBehavior) {
            return;
        }

        $node->setProperty($propertyName, $document->getPageNumber());
    }
public function handlePublishPageNumber ( PublishEvent $ event ) { $ document = $ event -> getDocument ( ) ; $ node = $ event -> getNode ( ) ; $ propertyName = $ this -> propertyEncoder -> systemName ( static :: FIELD ) ; if ( ! $ document instanceof PageBehavior ) { return ; } $ node -> setProperty ( $ propertyName , $ document -> getPageNumber ( ) ) ; }
Copy page-number to live workspace.

@param PublishEvent $event
Copy page - number to live workspace .