You are here

public function PiwikJavaScriptSnippet::jsonSerialize in Piwik Web Analytics 8

File

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

Class

PiwikJavaScriptSnippet
Formats a string for JavaScript display.

Namespace

Drupal\piwik\Component\Render

Code

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