Back to RouterInterface class

Method preprocess

public array
preprocess
(mixed $query)
Prepare-method for URLs This method is meant to validate and complete the URL parameters.
Parameters
  • array $query An associative array of URL arguments
Returns
  • array The URL arguments to use to assemble the subsequent URL.
Since
  • 3.3

Method preprocess - Source code

/**
 * Prepare-method for URLs
 * This method is meant to validate and complete the URL parameters.
 * For example it can add the Itemid or set a language parameter.
 * This method is executed on each URL, regardless of SEF mode switched
 * on or not.
 *
 * @param   array  $query  An associative array of URL arguments
 *
 * @return  array  The URL arguments to use to assemble the subsequent URL.
 *
 * @since   3.3
 */
public function preprocess($query);