You are here

public function CookieHelper::getCookieValue in Persistent Login 8

Returns the value of the persistent login cookie.

Parameters

\Symfony\Component\HttpFoundation\Request $request: The request.

Return value

string The cookie value.

Overrides CookieHelperInterface::getCookieValue

File

src/CookieHelper.php, line 66

Class

CookieHelper
Cookie helper service.

Namespace

Drupal\persistent_login

Code

public function getCookieValue(Request $request) {
  return $request->cookies
    ->get($this
    ->getCookieName($request));
}