public function href($service, $url = null, array $options = [])
    {
        // Get the URL, get the current full path if a URL hasn't been specified.
        $url = Router::url($url, true);
        $SocialShareUrl = new SocialShareUrl();

        return $SocialShareUrl->getUrl($service, $url, $options);
    }
public function href($service, $url = null, array $options = [])
    {
        // Get the URL, get the current full path if a URL hasn't been specified.
        $url = Router::url($url, true);
        $SocialShareUrl = new SocialShareUrl();

        return $SocialShareUrl->getUrl($service, $url, $options);
    }
public function href ( $ service , $ url = null , array $ options = [ ] ) { // Get the URL, get the current full path if a URL hasn't been specified. $ url = Router :: url ( $ url , true ) ; $ SocialShareUrl = new SocialShareUrl ( ) ; return $ SocialShareUrl -> getUrl ( $ service , $ url , $ options ) ; }
Creates a share URL.

### Options

- `text` Text to be passed to service relating to the shared content(e.g. page title).
- `image` URL of image for sharing (used by Pinterest).

For other options 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|null URL.
Creates a share URL .