You are here

public function RestfulEntityBaseUser::publicFieldsInfo in RESTful 7

Overrides \RestfulEntityBase::publicFieldsInfo().

Overrides RestfulEntityBase::publicFieldsInfo

File

plugins/restful/RestfulEntityBaseUser.php, line 13
Contains RestfulEntityBaseUser.

Class

RestfulEntityBaseUser
@file Contains RestfulEntityBaseUser.

Code

public function publicFieldsInfo() {
  $public_fields = parent::publicFieldsInfo();
  $public_fields['id'] = array(
    'property' => 'uid',
  );
  $public_fields['mail'] = array(
    'property' => 'mail',
  );
  return $public_fields;
}