Options:
- default: Default to show instead, defaults to empty string.
Set to true to show just title text when not allowed.
and all other link() options

@param string $title
@param array $url
@param array $options
@return string
483607
public function postLink($title, array $url, array $options = []) {
		if (!$this->hasAccess($url)) {
			return $this->_default($title, $options);
		}
		unset($options['default']);

		return $this->Form->postLink($title, $url, $options);
	}
454748
public function link($url, $title = null, $attributes = array(), $secure = null)
	{
		$url = $this->url->to($url, array(), $secure);

		if (is_null($title) || $title === false) $title = $url;

		return '<a href="'.$url.'"'.$this->attributes($attributes).'>'.$this->entities($title).'</a>';
	}
1271591
public static function linkDropdown($title, $links, $options = [])
    {
        $lis = '';
        foreach ($links as $name => $url) {
            $lis .= Html::tag('li', Html::a($name, $url));
        }

        return Html::beginTag('div', ['class' => 'btn-group'])
        . Html::button($title . '<span class="caret"></span>',
            array_merge(['class' => 'btn dropdown-toggle btn-primary', "data-toggle"=>"dropdown"], $options))
        . Html::beginTag('ul', ['class'=>'dropdown-menu'])
        . $lis
        . Html::endTag('ul')
        . Html::endTag('div');
    }
227622
public function url($url, $title, $order = 0, $attributes = array())
    {
        if (func_num_args() == 3) {
            $arguments = func_get_args();

            return $this->add([
                'url' => $this->formatUrl(array_get($arguments, 0)),
                'title' => array_get($arguments, 1),
                'attributes' => array_get($arguments, 2)
            ]);
        }

        $url = $this->formatUrl($url);
        
        $item = MenuItem::make(compact('url', 'title', 'order', 'attributes'));

        $this->items[] = $item;

        return $item;
    }
904340
public function addURL($url,$options=array()) {
        $ch = curl_init($url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        foreach($options as $option=>$value) {
            curl_setopt($ch, $option, $value);
        }
        return $this->addCurl($ch);
    }
686988
public function postButton($title, $url, array $options = array()) {
        $out = $this->create(false, array('id' => false, 'url' => $url));
        if (isset($options['data']) && is_array($options['data'])) {
            foreach (Hash::flatten($options['data']) as $key => $value) {
                $out .= $this->hidden($key, array('value' => $value, 'id' => false));
            }
            unset($options['data']);
        }

        if(isset($options['unlockFields'])){
            $unlockFields = is_array($options['unlockFields']) ? $options['unlockFields'] : array($options['unlockFields']);
            foreach($unlockFields as $unlockField){
                $this->unlockField($unlockField);
            }
        }
        unset($options['unlockFields']);

        $out .= $this->button($title, $options);
        $out .= $this->end();
        return $out;
    }
28793
public function link($url, $content = '', $options = [], $safe = false)
    {
        if (is_null($content)) {
            $content = $url;
        }

        return '<a href="'.$this->_generator->generateUrl($url).'"'.self::attributes($options).'>'.self::encode($content, $safe).'</a>';
    }
67079
public static function anchor(string $title, string $url = '', array $attributes = null) : string
    {
        // Add link
        if ($url !== '') $attributes['href'] = $url;
        return '<a'.Html::attributes($attributes).'>'.$title.'</a>';
    }
33040
public function getShareLink($url, array $options = array())
    {
        $options['url'] = $url;

        return sprintf(self::SHARE_URL, http_build_query($options));
    }
293533
public function next($title = 'Next >>', array $options = [])
    {
        $options = optionsParser($options, ['escape' => false, 'icon-align' => 'right']);
        list($title, $options) = $this->Html->addIconToText($title, $options);

        return parent::next($title, $options->toArray());
    }
660575
def make_link(title, url, blank=False):
	
	attrs = 'href="%s"' % url
	if blank:
		attrs += ' target="_blank" rel="noopener noreferrer"'
	return '<a %s>%s</a>' % (attrs, title)
1074109
public function unprotectedLink($title, $url, $options = [])
    {
        $url = $this->_getUrl($url);
        return $this->link($title, $url, $options);
    }
70507
public function btnReset($title = '', $options = [])
    {
        $title = empty($title) ? __('Reset') : $title;
        $options = array_merge([
            'class' => 'btn btn-success',
            'type' => 'reset',
        ], $options);
        return parent::button($title, $options);
    }
685152
public function addLink($text, array $url = [], $options = [])
    {
        $linkUrl = '#';
        $defaultIsActive = false;
        if ($to = array_get($url, 'to')) {
            $linkUrl = $this->manager->getUrl()->to($to);
        } elseif ($route = array_get($url, 'route')) {
            if (!is_array($route)) {
                $route = [$route];
            }

            $routeName = array_shift($route);
            $routeParams = $route;

            $linkUrl = $this->manager->getUrl()->route($routeName, $routeParams);
            $defaultIsActive = [
                'route'       => $routeName,
                'route_param' => $routeParams,
            ];
        } elseif ($action = array_get($url, 'action')) {
            if (!is_array($action)) {
                $action = [$action];
            }

            $actionName = array_shift($action);

            $linkUrl = $this->manager->getUrl()->action($actionName, $action);
            $defaultIsActive = [
                'action'      => $actionName,
                'route_param' => $action,
            ];
        }
        if ($query = array_get($url, 'query')) {
            $linkUrl .= '?' . http_build_query($query);
            $defaultIsActive['query'] = $query;
        }

        if (!isset($options['url_def'])) {
            $options['url_def'] = $defaultIsActive;
        }

        $this->addItem([
            'text' => $text,
            'url'  => $linkUrl,
        ], $options);

        return $this;
    }
1056787
def set_title(self, title: str, url: str = None) -> None:
        
        self.title = title
        self.url = url
490067
public static function cancel($title = null, $url = null, array $options = [])
    {
        $toolbar = Toolbar::getInstance(self::$_toolbar);
        $options += [
            'icon'      => 'close',
            'iconClass' => 'ckTextRed',
            'button'    => 'grey lighten-3'
        ];

        if (empty($url)) {
            $url = ['action' => 'index'];
        }

        $title = (empty($title)) ? __d('core', 'Cancel') : $title;

        $toolbar->appendButton('Core.link', $title, $url, $options);
    }
382467
public function append($title, $url, array $options = array()) {
        $this->_crumbs[] = array(
            'title' => strip_tags($title),
            'url' => $url,
            'options' => $options
        );

        $this->OpenGraph->title($this->pageTitle(null, array('reverse' => true)));
        $this->OpenGraph->uri($url);

        return $this;
    }