You are here

public static function Gingerbread::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

2 calls to Gingerbread::fromData()
GingerbreadTest::testAccessors in tests/src/Unit/Cookies/GingerbreadTest.php
@covers ::getAccountName @covers ::getOrEmail @covers ::getChild @covers ::getChildUid @dataProvider provideTestData
MainController::eatGingerbreadCookie in src/Controller/MainController.php
Respond with account information.

File

src/Cookies/Gingerbread.php, line 25

Class

Gingerbread

Namespace

Drupal\bakery\Cookies

Code

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