code: protected function getFilterParameters($objItemRenderer)
      {
          $filterUrlBuilder = System::getContainer()->get('metamodels.filter_url');
          $filterUrl        = $filterUrlBuilder->getCurrentFilterUrl();
  
          $result = [];
          foreach ($objItemRenderer->getFilterSettings()->getParameters() as $name) {
              if ($filterUrl->hasSlug($name)) {
                  $result[$name] = $filterUrl->getSlug($name);
              }
              // DAMN Contao - we have to "mark" the keys in the Input class as used as we get an 404 otherwise.
              Input::get($name);
          }
  
          return $filterUrl->getSlugParameters();
      }
docs: Retrieve all filter parameters from the input class for the specified filter setting.
  
  @param ItemList $objItemRenderer The list renderer instance to be used.
  
  @return string[]