action = $action; $this->args = $args; } public function __toString(): string { $attributes = ['action' => $this->action]; if ($this->args !== null) { $attributes['args'] = GeneralUtility::jsonEncodeForHtmlAttribute($this->args); } return sprintf( '', GeneralUtility::implodeAttributes($attributes, true) ); } }