You are here

public function RestfulVariableResource::publicFieldsInfo in RESTful 7

Return the properties that should be public.

Return value

array

Throws

\RestfulEntityViewMode

Overrides RestfulInterface::publicFieldsInfo

File

modules/restful_example/plugins/restful/variable/1.0/RestfulVariableResource.class.php, line 13
Contains \RestfulQueryVariable

Class

RestfulVariableResource
@file Contains \RestfulQueryVariable

Code

public function publicFieldsInfo() {
  return array(
    'variable_name' => array(
      'property' => 'name',
    ),
    'variable_value' => array(
      'property' => 'value',
    ),
  );
}