src/FrontendIntegration/FrontendFilter.php
protected function buildParameters(FilterUrl $other, FilterUrl $all, array $wantedNames): void
    {
        $current = $this->filterUrlBuilder->getCurrentFilterUrl([
            'postAsSlug'  => $wantedNames,
            'postAsGet'   => [],
            'preserveGet' => true
        ]);
        foreach ($current->getSlugParameters() as $name => $value) {
            $all->setSlug($name, $value);
            if (!in_array($name, $wantedNames)) {
                $other->setSlug($name, $value);
            }
        }
        foreach ($current->getGetParameters() as $name => $value) {
            $all->setGet($name, $value);
            if (!in_array($name, $wantedNames)) {
                $other->setGet($name, $value);
            }
        }
    }
protected function buildParameters(FilterUrl $other, FilterUrl $all, array $wantedNames): void
    {
        $current = $this->filterUrlBuilder->getCurrentFilterUrl([
            'postAsSlug'  => $wantedNames,
            'postAsGet'   => [],
            'preserveGet' => true
        ]);
        foreach ($current->getSlugParameters() as $name => $value) {
            $all->setSlug($name, $value);
            if (!in_array($name, $wantedNames)) {
                $other->setSlug($name, $value);
            }
        }
        foreach ($current->getGetParameters() as $name => $value) {
            $all->setGet($name, $value);
            if (!in_array($name, $wantedNames)) {
                $other->setGet($name, $value);
            }
        }
    }
Retrieve the parameter values.

@param FilterUrl $other       Destination for "other" parameters (not originating from current filter module).
@param FilterUrl $all         Destination for "all" parameters.
@param string[]  $wantedNames The wanted parameter names.

@return void