You are here

public function LoginCookie__1_0::publicFields in RESTful 7.2

Public fields.

Return value

array The field definition array.

Overrides ResourceEntity::publicFields

File

src/Plugin/resource/LoginCookie__1_0.php, line 41
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\resource

Code

public function publicFields() {
  $public_fields = parent::publicFields();
  $public_fields['id']['methods'] = array();

  // Just return the hidden ID.
  return array(
    'id' => $public_fields['id'],
  );
}