Back to Pagination class

Method getAdditionalUrlParam

public mixed
getAdditionalUrlParam
(mixed $key)
Method to get an additional URL parameter (if it exists) to be added to all pagination class generated links.
Parameters
  • string $key The name of the URL parameter for which to get the value.
Returns
  • mixed The value if it exists or null if it does not.
Since
  • 1.6
Class: Pagination
Project: Joomla

Method getAdditionalUrlParam - Source code

/**
 * Method to get an additional URL parameter (if it exists) to be added to
 * all pagination class generated links.
 *
 * @param   string  $key  The name of the URL parameter for which to get the value.
 *
 * @return  mixed  The value if it exists or null if it does not.
 *
 * @since   1.6
 */
public function getAdditionalUrlParam($key)
{
    return $this->additionalUrlParams[$key] ?? null;
}