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());
    }
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());
    }
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 ( ) ) ; }
Creates an HTML link
@param string $title The content to be wrapped by <a> tags
@param string|array|null $url Cake-relative URL or array of URL
parameters or external URL
@param array $options Array of options and HTML attributes
@return string
Creates an HTML link