You are here

public function RestfulCsrfTokenResource::publicFieldsInfo in RESTful 7

Return the properties that should be public.

Return value

array

Throws

\RestfulEntityViewMode

Overrides RestfulInterface::publicFieldsInfo

File

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

Class

RestfulCsrfTokenResource
@file Contains RestfulCsrfTokenResource.

Code

public function publicFieldsInfo() {
  return array(
    'X-CSRF-Token' => array(
      'callback' => 'static::getCsrfToken',
    ),
  );
}