public static function PersistentToken::createFromString in Persistent Login 8
Initialize a new object from a cookie value string.
Parameters
string $value: The cookie value.
Return value
static A new token.
1 call to PersistentToken::createFromString()
- TokenHandler::getTokenFromCookie in src/
EventSubscriber/ TokenHandler.php - Create a token object from the cookie provided in the request.
File
- src/
PersistentToken.php, line 90
Class
- PersistentToken
- Class PersistentToken.
Namespace
Drupal\persistent_loginCode
public static function createFromString($value) {
list($series, $instance) = explode(':', $value);
return new static($series, $instance);
}