By timmillwood on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.3.x
Introduced in version:
8.3.0
Issue links:
Description:
All database interactions in the Statistics module have been moved to NodeStatisticsDatabaseStorage. All interactions with the node_counter table to get and set node view counts should now be done via that service.
This service is tagged backend_overridable and can be overridden by any contrib or custom module, allowing node views to be stored and retrieved on a different data store.
With this update statistics_get() has been deprecated, use \Drupal::service('statistics.storage.node')->fetchView($id) instead.
Impacts:
Module developers