Backend\Core\Engine\TemplateModifiers::getURL PHP Method

getURL() public static method

Convert a var into a URL syntax: {{ geturl:[:] }}
public static getURL ( string $action = null, string $module = null, string $suffix = null, string $language = null ) : string
$action string The action to build the URL for.
$module string The module to build the URL for.
$suffix string A string to append.
$language string A language code
return string
    public static function getURL($action = null, $module = null, $suffix = null, $language = null)
    {
        if (!in_array($language, BackendLanguage::getActiveLanguages())) {
            $language = BackendLanguage::getWorkingLanguage();
        }
        $action = $action !== null ? (string) $action : null;
        $module = $module !== null ? (string) $module : null;
        return BackendModel::createURLForAction($action, $module, $language) . $suffix;
    }