PrivateTempStore::getOwner

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();
}
doc_Drupal
2016-10-29 09:34:57
Comments
Leave a Comment

Please login to continue.