You are here

public function GoogleAnalyticsJavaScriptSnippet::jsonSerialize in Google Analytics 8.2

Same name and namespace in other branches
  1. 8.3 src/Component/Render/GoogleAnalyticsJavaScriptSnippet.php \Drupal\google_analytics\Component\Render\GoogleAnalyticsJavaScriptSnippet::jsonSerialize()
  2. 4.x src/Component/Render/GoogleAnalyticsJavaScriptSnippet.php \Drupal\google_analytics\Component\Render\GoogleAnalyticsJavaScriptSnippet::jsonSerialize()

File

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

Class

GoogleAnalyticsJavaScriptSnippet
Formats a string for JavaScript display.

Namespace

Drupal\google_analytics\Component\Render

Code

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