You are here

public function FacetApiPrettyPathsCoderDefault::decodePathSegmentAlias in Facet API Pretty Paths 7

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

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

Parameters

array $args An associative array containing::

  • alias: The alias to decode.

File

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

Class

FacetApiPrettyPathsCoderDefault
Default FacetApiPrettyPathsCoder.

Code

public function decodePathSegmentAlias(array $args) {
  $alias = $args['alias'];

  // We need to decode path aliases twice.
  $alias = rawurldecode($alias);
  $alias = rawurldecode($alias);
  return $alias;
}