You are here

class TaxonomyFacetsPathProcessor in Taxonomy Facets 8

Hierarchy

Expanded class hierarchy of TaxonomyFacetsPathProcessor

1 string reference to 'TaxonomyFacetsPathProcessor'
taxonomy_facets.services.yml in ./taxonomy_facets.services.yml
taxonomy_facets.services.yml
1 service uses TaxonomyFacetsPathProcessor
taxonomy_facets.path_processor in ./taxonomy_facets.services.yml
Drupal\taxonomy_facets\PathProcessor\TaxonomyFacetsPathProcessor

File

src/PathProcessor/TaxonomyFacetsPathProcessor.php, line 8

Namespace

Drupal\taxonomy_facets\PathProcessor
View source
class TaxonomyFacetsPathProcessor implements InboundPathProcessorInterface {
  public function processInbound($path, Request $request) {
    if (strpos($path, '/listings/') === 0) {
      $names = preg_replace('|^\\/listings\\/|', '', $path);
      $names = str_replace('/', ':', $names);
      return "/listings/{$names}";
    }
    return $path;
  }

}

Members