Build <a> embed tag

@param array $arguments
@param string $href
@param string $title Default title
@return string
192528
protected static function linkEmbed($arguments, $href, $title)
    {
        $title = !empty($arguments['caption']) ? ($arguments['caption']) : $title;
        unset($arguments['caption']);
        unset($arguments['width']);
        unset($arguments['height']);
        unset($arguments['url']);
        $arguments['href'] = $href;
        return HTML::createTag('a', $arguments, Convert::raw2xml($title));
    }
343901
public function setSource($name, $href = null)
    {
        $this->source = new Element('cite', 'source');

        if (isset($href)) {
            $this->source->childNodes->push(new Link($name, $href));
        } else {
            $this->source->textContent->push($name);
        }

        return $this;
    }
929571
public function link($title, $url = null, $options = array(), $confirmMessage = false) {
		$exit = false;
		if (isset($options['onActive'])){
			list($url,$options) = $this->_onActive($url,$options);
		}

		if (isset($options['onHide'])){
			list($url,$options,$exit)= $this->_onHide($url,$options);
		}

		if (isset($options['onDisabled'])){
			list($url,$options) = $this->_onDisabled($url,$options);
		}		
		return  ($exit)? false : $this->_link($title,$url,$options,$confirmMessage);
	}
495983
public function link($title, $url = null, array $options = [])
    {
        $options = optionsParser($options, ['escape' => false, 'title' => $title]);
        $options->add('title', trim(h(strip_tags($options->get('title')))))->tooltip();
        list($title, $options) = $this->addIconToText($title, $options);

        return parent::link($title, $url, $options->toArray());
    }
754541
public static function anchor($href, $text = null, $attr = array(), $secure = null)
	{
		if ( ! preg_match('#^(\w+://|javascript:|\#)# i', $href))
		{
			$urlparts = explode('?', $href, 2);
			$href = \Uri::create($urlparts[0], array(), isset($urlparts[1])?$urlparts[1]:array(), $secure);
		}
		elseif ( ! preg_match('#^(javascript:|\#)# i', $href) and is_bool($secure))
		{
			$href = http_build_url($href, array('scheme' => $secure ? 'https' : 'http'));

			// Trim the trailing slash
			$href = rtrim($href, '/');
		}

		// Create and display a URL hyperlink
		is_null($text) and $text = $href;

		$attr['href'] = $href;

		return html_tag('a', $attr, $text);
	}
446928
public function link($title, array $url, array $options = []) {
		if (!$this->hasAccess($url)) {
			return $this->_default($title, $options);
		}
		unset($options['default']);

		return $this->Html->link($title, $url, $options);
	}
1057249
public function asLink($href=NULL,$target=NULL) {
		if (isset($href)) {
			$_target="";
			if(isset($target))
				$_target="target='{$target}'";
			$this->wrap("<a href='" . $href . "' {$_target}>", "</a>");
		}
		return $this->addToProperty("class", "link");
	}
459849
public function link($url, $title = null, $attributes = [], $secure = null, $escape = true)
    {
        $url = $this->url->to($url, [], $secure);

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

        if ($escape) {
            $title = $this->entities($title);
        }

        return $this->toHtmlString('<a href="' . $this->entities($url) . '"' . $this->attributes($attributes) . '>' . $title . '</a>');
    }
431384
public function generateCommandLink($command, $title = null)
    {
        return '<a href="javascript:submitCommand(\'' . StringTools::escapeHtml($command) . '\')">' . StringTools::escapeHtml($title ? $title : $command) . '</a>';
    }
248422
public function AddBookmarkableLink($href, $caption, $attributes = array())
    {
        $this->list[count($this->list) + 1] = array('type' => 'bookmarkable', 'href' => $href, 'caption' => $caption, 'attributes' => $attributes, 'selected' => false, 'disabled' => false);
    }
603344
private function makeLink($args)
    {
        if (!isset($args['href'])) {
            Core::i()->log->warning('Unable to add stylesheet, no href attribute.');
            return false;
        }
        if (!isset($args['rel'])) {
            $args['rel'] = 'stylesheet';
        }
        if (!isset($args['type']) && $args['rel'] == 'stylesheet') {
            $args['type'] = 'text/css';
        }

        $link = '<link';
        foreach ($args as $key => $value) {
            $link .= ' ' . $key . '="' . $value . '"';
        }
        $link .= ' />';
        return $link;
    }
1104755
private static function getTagContent($arguments, bool $hasContent)
    {
        $content = '';
        if (\is_array($arguments) && isset($arguments[0]) && $hasContent === true) {
            $content = $arguments[0];
        }
        return $content;
    }
875258
static function laraform($href, $text=null) {
        $el = new ElementButtonLinkTwbs(
            null, null, [
                'tagName' => 'a'
            ]
        );
        return $el->setContent($text)
            ->addClass('btn')
            ->setHref($href);
    }
875584
public Builder link(String href, String textContent) {
       text.a(textContent).a(" : ").a(href);
       tag("a", "href='" + href + "' target='_blank'");
       html.a(textContent);
       return end();
   }
1111457
public function addBreadcrumbLinkUntranslated(string $name, string $link = null, array $arguments = []): Link
	{
		return $this['breadcrumb']->addLinkUntranslated($name, $link, $arguments);
	}
580802
public function link($title, $url = null, array $options = [])
    {
        $options = $this->addClass($options, $this->_class(__FUNCTION__));
        $options = Hash::merge([
            'escapeTitle' => false,
            'clear'       => false,
            'label'       => $title,
        ], $options);

        $isClear = (bool) $options['clear'];
        unset($options['clear']);

        $options = $this->_setTitleAttr($title, $options);

        //  Set title in html tag.
        if ($this->_isEscapeTitle($title, $isClear, $options)) {
            $title = $this->tag('span', $title, ['class' => $this->_class(__FUNCTION__) . '-title']);
        }

        $options = $this->_getBtnClass($options);
        $options = $this->_getToolTipAttr($options);

        list($title, $options) = $this->_createIcon($this, $title, $options);
        unset($options['label']);

        return parent::link($title, $url, $options);
    }
385177
protected function link($keys, $replacements, $url, $title)
    {
        return HTML::link(handles(str_replace($keys, $replacements, $url)), $title);
    }