You are here

protected static function RestfulCsrfTokenResource::getCsrfToken in RESTful 7

Value callback; Return the CSRF token.

Return value

array

File

plugins/restful/csrf/RestfulCsrfTokenResource.class.php, line 26
Contains RestfulCsrfTokenResource.

Class

RestfulCsrfTokenResource
@file Contains RestfulCsrfTokenResource.

Code

protected static function getCsrfToken() {
  return drupal_get_token(\RestfulInterface::TOKEN_VALUE);
}