Frontend\Core\Engine\TemplateModifiers::getURLForBlock PHP Метод

getURLForBlock() публичный статический Метод

Get the URL for a give module & action combination syntax: {{ geturlforblock($module, $action, $language, $data) }}
public static getURLForBlock ( string $module, string $action = null, string $language = null, array $data = null ) : string
$module string The module wherefore the URL should be build.
$action string A specific action wherefore the URL should be build, otherwise the default will be used.
$language string The language to use, if not provided we will use the loaded language.
$data array An array with keys and values that partially or fully match the data of the block. If it matches multiple versions of that block it will just return the first match.
Результат string
    public static function getURLForBlock($module, $action = null, $language = null, array $data = null)
    {
        $action = $action !== null ? (string) $action : null;
        $language = $language !== null ? (string) $language : null;
        return Navigation::getURLForBlock((string) $module, $action, $language, $data);
    }