I am working on a shop, and for the cart, i need to store items before payment.
$tempstore = Drupal::service('user.private_tempstore')->get('boutique'); $tempstore->set('poids', $form_state->getValue('poids'));
I take a look on the user service for :
pivate_tempstore and shared_tempstore
But that work only for authenticates users.
What can I use for store data ? $_SESSION ? or Drupal 8 has a service for that ?