src/grid/MainColumn.php
public function buildUrl($url)
    {
        if (strncmp($url, '/', 1) === 0) {
            return $url;
        }
        $baseUrl = isset($this->grid->controllerUrl) ? $this->grid->controllerUrl : '';

        return $baseUrl ? Url::to($baseUrl . '/' . $url) : Url::to($url);
    }
public function buildUrl($url)
    {
        if (strncmp($url, '/', 1) === 0) {
            return $url;
        }
        $baseUrl = isset($this->grid->controllerUrl) ? $this->grid->controllerUrl : '';

        return $baseUrl ? Url::to($baseUrl . '/' . $url) : Url::to($url);
    }
public function buildUrl ( $ url ) { if ( strncmp ( $ url , '/' , 1 ) === 0 ) { return $ url ; } $ baseUrl = isset ( $ this -> grid -> controllerUrl ) ? $ this -> grid -> controllerUrl : '' ; return $ baseUrl ? Url :: to ( $ baseUrl . '/' . $ url ) : Url :: to ( $ url ) ; }
Builds url.
@param string $url
@return string
Builds url .