public function MatomoJavaScriptSnippet::__construct in Matomo Analytics 8
Constructs an HtmlEscapedText object.
Parameters
string $string: The string to escape. This value will be cast to a string.
File
- src/
Component/ Render/ MatomoJavaScriptSnippet.php, line 25
Class
- MatomoJavaScriptSnippet
- Formats a string for JavaScript display.
Namespace
Drupal\matomo\Component\RenderCode
public function __construct($string) {
$this->string = (string) $string;
}