public function fa($service, $url = null, array $options = [])
    {
        $defaults = [
            'target' => $this->_config['target']
        ];
        $options += $defaults;

        $options['escape'] = false;

        $icon = $this->icon($service, $options);
        unset($options['icon_class']);

        $attributes = $options;
        unset($attributes['text']);
        unset($attributes['image']);

        return $this->Html->link(
            $icon,
            $this->href($service, $url, $options),
            $attributes
        );
    }
public function fa($service, $url = null, array $options = [])
    {
        $defaults = [
            'target' => $this->_config['target']
        ];
        $options += $defaults;

        $options['escape'] = false;

        $icon = $this->icon($service, $options);
        unset($options['icon_class']);

        $attributes = $options;
        unset($attributes['text']);
        unset($attributes['image']);

        return $this->Html->link(
            $icon,
            $this->href($service, $url, $options),
            $attributes
        );
    }
public function fa ( $ service , $ url = null , array $ options = [ ] ) { $ defaults = [ 'target' => $ this -> _config [ 'target' ] ] ; $ options += $ defaults ; $ options [ 'escape' ] = false ; $ icon = $ this -> icon ( $ service , $ options ) ; unset ( $ options [ 'icon_class' ] ) ; $ attributes = $ options ; unset ( $ attributes [ 'text' ] ) ; unset ( $ attributes [ 'image' ] ) ; return $ this -> Html -> link ( $ icon , $ this -> href ( $ service , $ url , $ options ) , $ attributes ) ; }
Creates an HTML link to share a URL using a Font Awesome icon.

### Options

- `icon_class` Class name of icon for overriding defaults.

See HtmlHelper::link().

@param string $service Social Media service to create share link for.
@param string|array $url Cake-relative URL or array of URL parameters, or external URL (starts with http://)
@param array $options Array of options.
@return string URL.
Creates an HTML link to share a URL using a Font Awesome icon .