You are here

public static function CsrfToken::getCsrfToken in RESTful 7.2

Value callback; Return the CSRF token.

Return value

string The token.

File

src/Plugin/resource/CsrfToken.php, line 51
Contains \Drupal\restful\Plugin\resource\CsrfToken.

Class

CsrfToken
Class CsrfToken @package Drupal\restful\Plugin\resource

Namespace

Drupal\restful\Plugin\resource

Code

public static function getCsrfToken() {
  return drupal_get_token(\Drupal\restful\Plugin\authentication\Authentication::TOKEN_VALUE);
}