Piwik\Plugin\Menu::urlForActionWithDefaultUserParams PHP Метод

urlForActionWithDefaultUserParams() защищенный Метод

Generates a URL to the given action of the current module, and it will also append some URL query parameters from the User preferences: idSite, period, date. If you do not need the parameters idSite, period and date to be generated use {@link urlForAction()} instead.
protected urlForActionWithDefaultUserParams ( string $controllerAction, array $additionalParams = [] ) : array
$controllerAction string The name of the action that should be executed within your controller
$additionalParams array Optional URL parameters that will be appended to the URL
Результат array Returns the array of query parameter names and values to the given module action and idSite date and period.
    protected function urlForActionWithDefaultUserParams($controllerAction, $additionalParams = array())
    {
        $module = $this->getModule();
        return $this->urlForModuleActionWithDefaultUserParams($module, $controllerAction, $additionalParams);
    }