I hope this is the right section to report documentation bugs…?
In the documentation for Add Data to Storefront you are showing a ProductCountRoute() class.
Three bugs in the load() function of the class:
- criteria rather then $criteria
- $event object not initalized
- $context object passed but not used
I guess $context should replace $event but have not tried yet.