commonPageType = $commonPageData ?? $commonPageType; } #[Query] #[Module(\Modules::JS_SHOP)] public function gtmData(): ?GTMData { // Can be called together with cartUpdate. Wrapped in try catch, so it cannot cause 500 for cartUpdate try { return new GTMData($this->commonPageType); } catch (\Exception $e) { return null; } } }