class TaxonomyFacetsPathProcessor in Taxonomy Facets 8
Hierarchy
- class \Drupal\taxonomy_facets\PathProcessor\TaxonomyFacetsPathProcessor implements InboundPathProcessorInterface
Expanded class hierarchy of TaxonomyFacetsPathProcessor
1 string reference to 'TaxonomyFacetsPathProcessor'
1 service uses TaxonomyFacetsPathProcessor
File
- src/
PathProcessor/ TaxonomyFacetsPathProcessor.php, line 8
Namespace
Drupal\taxonomy_facets\PathProcessorView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TaxonomyFacetsPathProcessor:: |
public | function |
Processes the inbound path. Overrides InboundPathProcessorInterface:: |