interface CookieInterface in Bakery Single Sign-On System 8.2
Hierarchy
- interface \Drupal\bakery\Cookies\CookieInterface
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\CookiesView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CookieInterface:: |
public static | function | Create from data stored in a cookie. | 5 |
CookieInterface:: |
public static | function | Get the cookie name/type. | 5 |
CookieInterface:: |
public | function | Convert the data into an array to be stored into a cookie. | 5 |