protected PrivateTempStore::getOwner()
Gets the current owner based on the current user or the session ID.
Return value
string The owner.
File
- core/modules/user/src/PrivateTempStore.php, line 203
Class
- PrivateTempStore
- Stores and retrieves temporary data for a given owner.
Namespace
Drupal\user
Code
protected function getOwner() { return $this->currentUser->id() ? : $this->requestStack->getCurrentRequest()->getSession()->getId(); }
Please login to continue.