public function ContextCurrentUserAuth::getCookies in TMGMT Translator Smartling 8
Same name and namespace in other branches
- 8.4 src/Context/ContextCurrentUserAuth.php \Drupal\tmgmt_smartling\Context\ContextCurrentUserAuth::getCookies()
- 8.2 src/Context/ContextCurrentUserAuth.php \Drupal\tmgmt_smartling\Context\ContextCurrentUserAuth::getCookies()
- 8.3 src/Context/ContextCurrentUserAuth.php \Drupal\tmgmt_smartling\Context\ContextCurrentUserAuth::getCookies()
Returns cookies of the needed user.
Parameters
string $name:
Return value
string
Throws
File
- src/
Context/ ContextCurrentUserAuth.php, line 31
Class
Namespace
Drupal\tmgmt_smartling\ContextCode
public function getCookies($name) {
if ($this->currentAccount
->getAccountName() !== $name) {
throw new WrongUsernameException('You tried to authenticate with a username that is different from the current user. This feature wasn\'t implemented yet.');
}
return session_name() . "=" . session_id();
}