public function getNextPage()
    {
        $nextPageIndex = $this->currentPage->getIndex() + 1;
        if (!$this->formDefinition->hasPageWithIndex($nextPageIndex)) {
            return null;
        }
        return $this->formDefinition->getPageByIndex($nextPageIndex);
    }
public function getNextPage()
    {
        $nextPageIndex = $this->currentPage->getIndex() + 1;
        if (!$this->formDefinition->hasPageWithIndex($nextPageIndex)) {
            return null;
        }
        return $this->formDefinition->getPageByIndex($nextPageIndex);
    }
public function getNextPage ( ) { $ nextPageIndex = $ this -> currentPage -> getIndex ( ) + 1 ; if ( ! $ this -> formDefinition -> hasPageWithIndex ( $ nextPageIndex ) ) { return null ; } return $ this -> formDefinition -> getPageByIndex ( $ nextPageIndex ) ; }
Returns the next page of the currently selected one or NULL if there is no next page

@return Page|null
@api
Returns the next page of the currently selected one or NULL if there is no next page