Back to RulesInterface class

Method build

public void
build
(mixed &$query, mixed &$segments)
Builds URI segments from a query to encode the necessary information for a route in a human-readable URL.
Parameters
  • array & $query The vars that should be converted
  • array & $segments The URL segments to create
Returns
  • void
Since
  • 3.4

Method build - Source code

/**
 * Builds URI segments from a query to encode the necessary information for a route in a human-readable URL.
 * This method should retrieve all its input from its method arguments.
 *
 * @param   array  &$query     The vars that should be converted
 * @param   array  &$segments  The URL segments to create
 *
 * @return  void
 *
 * @since   3.4
 */
public function build(&$query, &$segments);