You are here

interface CookieInterface in Bakery Single Sign-On System 8.2

Hierarchy

Expanded class hierarchy of CookieInterface

All classes that implement CookieInterface

2 files declare their use of CookieInterface
BakerySiteTestBase.php in tests/src/Functional/BakerySiteTestBase.php
Kitchen.php in src/Kitchen.php

File

src/Cookies/CookieInterface.php, line 5

Namespace

Drupal\bakery\Cookies
View source
interface CookieInterface {

  /**
   * Create from data stored in a cookie.
   *
   * @param array $data
   *   The data stored in the cookie.
   *
   * @return static
   */
  public static function fromData(array $data);

  /**
   * Convert the data into an array to be stored into a cookie.
   *
   * @return array
   *   The data to store in the cookie.
   */
  public function toData() : array;

  /**
   * Get the cookie name/type.
   *
   * @return string
   */
  public static function getName() : string;

}

Members

Namesort descending Modifiers Type Description Overrides
CookieInterface::fromData public static function Create from data stored in a cookie. 5
CookieInterface::getName public static function Get the cookie name/type. 5
CookieInterface::toData public function Convert the data into an array to be stored into a cookie. 5