27 protected string $url =
"";
32 return new self(self::TYPE_LINK);
40 public function setUrl(
string $a_value): void
42 $this->url = trim($a_value);
52 $this->target = trim($a_value);
67 return ' ' . $this->
getCaption() .
' ';
73 $relAttrVal =
'noopener';
75 if (isset($a_additional_attr[
'rel'])) {
76 if (strpos($a_additional_attr[
'rel'], $relAttrVal) ===
false) {
77 $a_additional_attr[
'rel'] .=
' ' . $relAttrVal;
80 $a_additional_attr[
'rel'] = $relAttrVal;
84 return parent::renderAttributes($a_additional_attr);
92 $attr[
"href"] = $this->
getUrl() ?:
"#";