public function getCurrent(
        Result $result,
        bool $addQuersyStringPlaceholder = false
    ): ? string {
        $urlParameters = $this->generateQueryUrlParameters($result);
        if ($addQuersyStringPlaceholder) {
            $urlParameters['q'] = '{{q}}';
        }

        return $this->createUrlByUrlParameters(
            $result,
            $urlParameters
        )['route'];
    }
public function getCurrent(
        Result $result,
        bool $addQuersyStringPlaceholder = false
    ): ? string {
        $urlParameters = $this->generateQueryUrlParameters($result);
        if ($addQuersyStringPlaceholder) {
            $urlParameters['q'] = '{{q}}';
        }

        return $this->createUrlByUrlParameters(
            $result,
            $urlParameters
        )['route'];
    }
public function getCurrent ( Result $ result , bool $ addQuersyStringPlaceholder = false ) : ? string { $ urlParameters = $ this -> generateQueryUrlParameters ( $ result ) ; if ( $ addQuersyStringPlaceholder ) { $ urlParameters [ 'q' ] = '{{q}}' ; } return $ this -> createUrlByUrlParameters ( $ result , $ urlParameters ) [ 'route' ] ; }
Get current.

@param Result $result
@param bool   $addQuersyStringPlaceholder

@return string
Get current .