You are here

public static function GingerbreadReturn::fromData in Bakery Single Sign-On System 8.2

Create from data stored in a cookie.

Parameters

array $data: The data stored in the cookie.

Return value

static

Overrides CookieInterface::fromData

File

src/Cookies/GingerbreadReturn.php, line 39

Class

GingerbreadReturn

Namespace

Drupal\bakery\Cookies

Code

public static function fromData(array $data) {
  return new static($data['name'] ?? '', $data['mail'] ?? '', $data['uid'] ?? '');
}