You are here

protected function CsrfToken::publicFields in RESTful 7.2

Public fields.

Return value

array The field definition array.

Overrides Resource::publicFields

1 call to CsrfToken::publicFields()
CsrfToken::index in src/Plugin/resource/CsrfToken.php
Basic implementation for listing.

File

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

Class

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

Namespace

Drupal\restful\Plugin\resource

Code

protected function publicFields() {
  return array(
    'X-CSRF-Token' => array(
      'callback' => '\\Drupal\\restful\\Plugin\\resource\\CsrfToken::getCsrfToken',
    ),
  );
}