You are here

public function MatomoJavaScriptSnippet::jsonSerialize in Matomo Analytics 8

File

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

Class

MatomoJavaScriptSnippet
Formats a string for JavaScript display.

Namespace

Drupal\matomo\Component\Render

Code

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