You are here

public function MatomoJavaScriptSnippet::__toString in Matomo Analytics 8

Returns markup.

Return value

string The markup.

Overrides MarkupInterface::__toString

1 call to MatomoJavaScriptSnippet::__toString()
MatomoJavaScriptSnippet::jsonSerialize in src/Component/Render/MatomoJavaScriptSnippet.php

File

src/Component/Render/MatomoJavaScriptSnippet.php, line 32

Class

MatomoJavaScriptSnippet
Formats a string for JavaScript display.

Namespace

Drupal\matomo\Component\Render

Code

public function __toString() {
  return $this->string;
}