Interface for a route that can build a link to a specified type of data.
| package | XenForo_Mvc |
|---|
buildLink(string $originalPrefix, string $outputPrefix, string $action, string $extension, mixed $data, array $extraParams) : string | false
Unhandled extra params will be turned into a query string after this function is called. If a param is handled by the core URL, it should be unset from the extra params list.
stringOriginal prefix for the type of link to be generated; this is a known value, but shouldn't be displayed to the user
stringThe configured output that means the same thing as the original prefix but is user configured
stringAction to take on the data
stringSpecified extension for the link
mixedInfo about data to link to specifically (eg, info about a thread)
arrayExtra params that modify how the link is built
stringfalseCore link if handled, false otherwise