You are here

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

Stroopwafel

Namespace

Drupal\bakery\Cookies

Code

public function toData() : array {
  return [
    'uid' => $this->uid,
    'category' => 'account',
    'data' => serialize($this->data),
  ];
}