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

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