public function getSearchTargetPage()
    {
        $targetPage = (int)$this->getValueByPathOrDefaultValue('plugin.tx_solr.search.targetPage', 0);
        if ($targetPage === 0) {
            // when no specific page was configured we use the contextPageId (which is usual $GLOBALS['TSFE']->id)
            $targetPage = $this->contextPageId;
        }

        return $targetPage;
    }
public function getSearchTargetPage()
    {
        $targetPage = (int)$this->getValueByPathOrDefaultValue('plugin.tx_solr.search.targetPage', 0);
        if ($targetPage === 0) {
            // when no specific page was configured we use the contextPageId (which is usual $GLOBALS['TSFE']->id)
            $targetPage = $this->contextPageId;
        }

        return $targetPage;
    }
public function getSearchTargetPage ( ) { $ targetPage = ( int ) $ this -> getValueByPathOrDefaultValue ( 'plugin.tx_solr.search.targetPage' , 0 ) ; if ( $ targetPage === 0 ) { // when no specific page was configured we use the contextPageId (which is usual $GLOBALS['TSFE']->id) $ targetPage = $ this -> contextPageId ; } return $ targetPage ; }
Returns the configured target page for the search.
By default the contextPageId will be used

plugin.tx_solr.search.targetPage

@return int
Returns the configured target page for the search . By default the contextPageId will be used