Caffeinated\Menus\Builder::getUrl PHP Метод

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

Get the action for a "url" option.
protected getUrl ( array | string $options ) : string
$options array | string
Результат string
    protected function getUrl($options)
    {
        foreach ($options as $key => $value) {
            ${$key} = $value;
        }
        $secure = (isset($options['secure']) and $options['secure'] === true) ? true : false;
        if (is_array($url)) {
            if (self::isAbsolute($url[0])) {
                return $url[0];
            }
            return $this->url->to($prefix . '/' . $url[0], array_slice($url, 1), $secure);
        }
        if (self::isAbsolute($url)) {
            return $url;
        }
        return $this->url->to($prefix . '/' . $url, array(), $secure);
    }