public function Stroopwafel::toData in Bakery Single Sign-On System 8.2
Convert the data into an array to be stored into a cookie.
Return value
array The data to store in the cookie.
Overrides CookieInterface::toData
File
- src/
Cookies/ Stroopwafel.php, line 26
Class
Namespace
Drupal\bakery\CookiesCode
public function toData() : array {
return [
'uid' => $this->uid,
'category' => 'account',
'data' => serialize($this->data),
];
}