You are here

public static function OatmealCookie::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/OatmealCookie.php, line 29

Class

OatmealCookie

Namespace

Drupal\bakery\Cookies

Code

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