Exemplo n.º 1
0
 /**
  * Formats the value as a mailto link.
  * @param string $value the value to be formatted.
  * @param array $options the tag options in terms of name-value pairs. See [[Html::mailto()]].
  * @return string the formatted result.
  */
 public function asEmail($value, $options = [])
 {
     if ($value === null) {
         return $this->nullDisplay;
     }
     return Html::mailto(Html::encode($value), $value, $options);
 }