Solar_Uri_Rewrite::getPath()
public
string
Solar_Uri_Rewrite::getPath
( string $name
, array $data = NULL
)
Look up a named rewrite rule, replace the regex token placeholders in the pattern with data values, and return the resulting path.
Parameters
(string)
$name
: The rewrite rule name.(array)
$data
: Key-value pairs to use as replacements for the regex token placeholders in the pattern.
Returns
(string) The named rewrite rule with data in it.
Description
Look up a named rewrite rule, replace the regex token placeholders in the pattern with data values, and return the resulting path.