mailto() public method

Generate a HTML link to an email address.
public mailto ( string $email, string $title = null, array $attributes = [], boolean $escape = true ) : Illuminate\Support\HtmlString
$email string
$title string
$attributes array
$escape boolean
return Illuminate\Support\HtmlString
 /**
  * Return an HTML mailto link.
  *
  * @param null|string $text
  * @return null|string
  */
 public function mailto($text = null)
 {
     if (!($email = $this->object->getValue())) {
         return null;
     }
     return $this->html->mailto($email, $text);
 }
Exemplo n.º 2
0
 /**
  * Generate a HTML link to an email address.
  *
  * @param string $email
  * @param string $title
  * @param array $attributes
  * @return \Illuminate\Support\HtmlString 
  * @static 
  */
 public static function mailto($email, $title = null, $attributes = array())
 {
     return \Collective\Html\HtmlBuilder::mailto($email, $title, $attributes);
 }