Back to RouterView class

Method preprocess

public array
preprocess
(mixed $query)
Generic method to preprocess a URL
Parameters
  • array $query An associative array of URL arguments
Returns
  • array The URL arguments to use to assemble the subsequent URL.
Since
  • 3.5
Class: RouterView
Project: Joomla

Method preprocess - Source code

/**
 * Generic method to preprocess a URL
 *
 * @param   array  $query  An associative array of URL arguments
 *
 * @return  array  The URL arguments to use to assemble the subsequent URL.
 *
 * @since   3.5
 */
public function preprocess($query)
{
    // Process the parsed variables based on custom defined rules
    foreach ($this->rules as $rule) {
        $rule->preprocess($query);
    }
    return $query;
}