public function EventStorageService::flush in Commerce Google Tag Manager 8.2
Same name and namespace in other branches
- 8 src/EventStorageService.php \Drupal\commerce_google_tag_manager\EventStorageService::flush()
Delete all stored event data.
Return value
bool The flush results.
File
- src/
EventStorageService.php, line 89
Class
- EventStorageService
- Stores all tracked Enhanced Ecommerce events in a private tempstore.
Namespace
Drupal\commerce_google_tag_managerCode
public function flush() {
return $this->tempStore
->delete('events');
}