src/Request.php
public function isPjax()
    {
        if (isset($this->_isPjax)) {
            return $this->_isPjax;
        }
        return $this->_isPjax = $this->isAjax() && !empty($_SERVER['HTTP_X_PJAX']);
    }
public function isPjax()
    {
        if (isset($this->_isPjax)) {
            return $this->_isPjax;
        }
        return $this->_isPjax = $this->isAjax() && !empty($_SERVER['HTTP_X_PJAX']);
    }
public function isPjax ( ) { if ( isset ( $ this -> _isPjax ) ) { return $ this -> _isPjax ; } return $ this -> _isPjax = $ this -> isAjax ( ) && ! empty ( $ _SERVER [ 'HTTP_X_PJAX' ] ) ; }
Returns whether this is a PJAX request.

@return boolean whether this is a PJAX request
Returns whether this is a PJAX request .