You are here

public function Kitchen::bake in Bakery Single Sign-On System 8.2

Set a cookie.

Parameters

\Drupal\bakery\Cookies\CookieInterface $cookie: The cookie data.

Throws

\Drupal\bakery\Exception\MissingKeyException Thrown if the site key isn't configured yet.

1 call to Kitchen::bake()
Kitchen::reBakeChocolateChipCookie in src/Kitchen.php
Re-bake a chocolate chip cookie.

File

src/Kitchen.php, line 75

Class

Kitchen

Namespace

Drupal\bakery

Code

public function bake(CookieInterface $cookie) {
  $this->cookieJar
    ->set($cookie::getName(), $this
    ->bakeData($cookie));
}