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

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

Example: $menu->addItem('UI Framework', '', $this->urlForDefaultAction(), $orderId = 30); will add a menu item that leads to the default action of the plugin controller when a user clicks on it. The default action is usually the index action - meaning the index() method the controller - but the default action can be customized within a controller
С версии: 2.7.0
protected urlForDefaultAction ( array $additionalParams = [] ) : array
$additionalParams array Optional URL parameters that will be appended to the URL
Результат array
    protected function urlForDefaultAction($additionalParams = array())
    {
        $params = (array) $additionalParams;
        $params['action'] = '';
        $params['module'] = $this->getModule();
        return $params;
    }