1

The user ID is saved on the store when it's created. Therefore you can load it with code similar to the following one. $store = \Drupal::entityTypeManager()->getStorage('commerce_store')->loadByProperties(['uid' => \Drupal::currentUser()->id()]); That will load the store based on the currently logged-in user.


Only top voted, non community-wiki answers of a minimum length are eligible