From d2935b00c69f095eaa61f124fbf359327d41e064 Mon Sep 17 00:00:00 2001 From: Volker Killesreiter Date: Tue, 5 May 2020 10:22:27 +0200 Subject: [PATCH] Prepend amp tracking code --- src/Plugin/Field/FieldFormatter/IvwAmpFormatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin/Field/FieldFormatter/IvwAmpFormatter.php b/src/Plugin/Field/FieldFormatter/IvwAmpFormatter.php index aa4f883..2ba8f54 100644 --- a/src/Plugin/Field/FieldFormatter/IvwAmpFormatter.php +++ b/src/Plugin/Field/FieldFormatter/IvwAmpFormatter.php @@ -167,7 +167,7 @@ public function viewElements( foreach ($items as $delta => $item) { $st = $this->configFactory->get('ivw_integration.settings')->get('mobile_site'); - $cp = $this->tokenService->replace( + $cp = 'amp-' . $this->tokenService->replace( $this->configFactory->get('ivw_integration.settings')->get('code_template'), ['entity' => $items->getEntity()], [