Create a confirmation link.

@param string $title The link title.
@param array $options Options passed to the html link helper method.
@return string
175836
public function confirmationLink($title, $options)
    {
        if (!isset($options['confirm-message'])) {
            user_error('\'confirm-message\' option is not set on protectedConfirmationLink.');
            $options['confirm-message'] = '';
        }
        if (!isset($options['confirm-title'])) {
            user_error('\'confirm-title\' option is not set on protectedConfirmationLink.');
            $options['confirm-title'] = '';
        }

        $url = 'javascript:void(0)';

        $linkOptions = [
            'data-modal-header' => $options['confirm-title'],
            'data-modal-body' => '<p>' . $options['confirm-message'] . '</p>',
            'data-toggle' => 'confirm'
        ];
        unset($options['confirm-title'], $options['confirm-message']);

        if (isset($options['notify'])) {
            $linkOptions['data-modal-notify'] = $options['notify'];
            unset($options['notify']);
        }

        if (isset($options['event'])) {
            $linkOptions['data-modal-event'] = $options['event'];
            unset($options['event']);
        }

        $linkOptions = Hash::merge($linkOptions, $options);
        return $this->link($title, $url, $linkOptions);
    }
279542
public function link($url, $title, $attributes = [])
    {
        $attributes['href'] = $url;
        $tag = new Tag('a', $attributes);
        $tag->setText($title);
        return $tag;
    }
1218956
public function setTitle( $title ) {
		if ( $this->title !== $title ) {
			$this->title = $title;
			$this->updateTitle();
		}

		return $this;
	}
1028069
public function add($title, $url, array $options = array()) {
        $this->append($title, $url, $options);

        return $this;
    }
617071
public function mapLink($title, $mapOptions = [], $linkOptions = []) {
		return $this->Html->link($title, $this->mapUrl($mapOptions + ['escape' => false]), $linkOptions);
	}
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);
    }
1002303
public function addAction($title, $link, array $options = [])
    {
        if (is_array($link)) {
            if (!isset($link['p'])) {
                $link['p'] = P;
            }
            if (!isset($link['do'])) {
                $link['do'] = P_DO;
            }

            // Removed "_default" from main action if called from Main and is the beginning of string
            if (stripos($link['do'], '_default') === 0) {
                $link['do'] = str_replace('_default_', '', $link['do']);
            }

            $link = Linker::makeUrl($link);
        }

        $options['link'] = $link;
        $this->actions[$title] = $options;

        return $this;
    }
541143
public function create(
        string $title,
        string $description,
        $amount,
        array $optional = []
    ): Response {
        $body = \array_merge(\compact('title', 'description', 'amount'), $optional);

        list($headers, $stream) = $this->prepareMultipartRequestPayloads([], $body);

        return $this->stream('POST', 'open_collections', $headers, $body);
    }
436679
protected function templateLink($title, $link = null, $icon = null)
    {
        if (!isset($link)) {
            return '<span>' . $icon . $title . '</span>';
        }
        return '<a title="' . $title . '" href="' . $link . '">' . $icon . $title . '</a>';
    }
1086725
public function addItem($name, $title, $options = [])
    {
        $options = is_string($options) ? ['url' => $options] : $options;
        $item    = new Item($this, $name, $title, $options);
        $this->items->addItem($item);

        return $item;
    }
1044841
public function add($title, $options = '')
    {
        $id = isset($options['id']) ? $options['id'] : $this->id();

        $item = new Item($this, $id, $title, $options);

        $this->items->push($item);

        return $item;
    }
1143826
public function success(string $message, string $title = '', array $options = []): self
    {
        return $this->addNotification(self::SUCCESS, $message, $title, $options);
    }
467507
public function hyperlink($label, $url, $options=array())
    {
        if (is_null($label) || $label === false) $label = $url;

        $options    = $this->getOptions($options);
        $attributes = $this->filterValidAttributes($options);

        return '<a href="'.$url.'"'.$this->Html->attributes($attributes).'>'.$this->Html->entities($label).'</a>';
    }
1043727
public function createAnchorLink($title)
    {
        $anchor = strtolower($title);

        // Check if we already have link to an anchor with the same name, and add count suffix
        $linkCounts = array_count_values(self::$links);
        $anchorSuffix = array_key_exists($anchor, $linkCounts)
            ? '-' . $linkCounts[$anchor] : '';
        array_push(self::$links, $anchor);

        return sprintf("[%s](%s)", $title, '#' . $anchor . $anchorSuffix);
    }
808469
protected function _tooltipTitle(array $options, $tooltip)
    {
        if ($tooltip === true && !Arr::key('title', $options)) {
            $options['title'] = strip_tags($options['label']);
        }

        if (is_string($tooltip)) {
            $options['title'] = $tooltip;
        }

        return $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());
    }
794540
public function postLink($title, $url = null, $options = array(), $confirmMessage = false) {
		$exit = false;
		if (isset($options['onHide'])){
			list($url,$options,$exit)= $this->_onHide($url,$options);
		}
		return  ($exit)? false : parent::postLink($title,$url,$options,$confirmMessage);		
	}