You are here

public function FacetApiPrettyPathsCoderDefault::decodePathSegmentValue in Facet API Pretty Paths 6.3

Same name and namespace in other branches
  1. 7 plugins/coders/facetapi_pretty_paths_coder_default.inc \FacetApiPrettyPathsCoderDefault::decodePathSegmentValue()

Decode the value part of a path segment in order to interpret it from a given pretty path.

Parameters

array $args An associative array containing::

  • segment: The path segment to decode.
  • facet: The facet that is related to the path segment.
1 call to FacetApiPrettyPathsCoderDefault::decodePathSegmentValue()
FacetApiPrettyPathsCoderTaxonomy::decodePathSegmentValue in plugins/coders/facetapi_pretty_paths_coder_taxonomy.inc
Taxonomy special case: <alias>/<term-name>-<term-id>
1 method overrides FacetApiPrettyPathsCoderDefault::decodePathSegmentValue()
FacetApiPrettyPathsCoderTaxonomy::decodePathSegmentValue in plugins/coders/facetapi_pretty_paths_coder_taxonomy.inc
Taxonomy special case: <alias>/<term-name>-<term-id>

File

plugins/coders/facetapi_pretty_paths_coder_default.inc, line 49
A default coder for pretty paths.

Class

FacetApiPrettyPathsCoderDefault
Default FacetApiPrettyPathsCoder.

Code

public function decodePathSegmentValue(array $args) {
  $value = $args['value'];
  $value = str_replace('%2F', '/', rawurldecode($value));
  return $value;
}