public static function LoginCookie__1_0::getCSRFTokenValue in RESTful 7.2
Get the CSRF token string.
Return value
string The token.
File
- src/
Plugin/ resource/ LoginCookie__1_0.php, line 115 - Contains \Drupal\restful\Plugin\resource\LoginCookie__1_0.
Class
- LoginCookie__1_0
- Class LoginCookie__1_0 @package Drupal\restful\Plugin\resource
Namespace
Drupal\restful\Plugin\resourceCode
public static function getCSRFTokenValue() {
$token = array_values(restful_csrf_session_token());
return reset($token);
}