public function GoogleAnalyticsJavaScriptSnippet::__toString in Google Analytics 4.x
Same name and namespace in other branches
- 8.3 src/Component/Render/GoogleAnalyticsJavaScriptSnippet.php \Drupal\google_analytics\Component\Render\GoogleAnalyticsJavaScriptSnippet::__toString()
- 8.2 src/Component/Render/GoogleAnalyticsJavaScriptSnippet.php \Drupal\google_analytics\Component\Render\GoogleAnalyticsJavaScriptSnippet::__toString()
Returns markup.
Return value
string The markup.
Overrides MarkupInterface::__toString
1 call to GoogleAnalyticsJavaScriptSnippet::__toString()
- GoogleAnalyticsJavaScriptSnippet::jsonSerialize in src/
Component/ Render/ GoogleAnalyticsJavaScriptSnippet.php
File
- src/
Component/ Render/ GoogleAnalyticsJavaScriptSnippet.php, line 32
Class
- GoogleAnalyticsJavaScriptSnippet
- Formats a string for JavaScript display.
Namespace
Drupal\google_analytics\Component\RenderCode
public function __toString() {
return $this->string;
}