original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: 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.
docstring_tokens: Creates a share URL .