You are here

protected function Variables__1_0::publicFields in RESTful 7.2

Public fields.

Return value

array The field definition array.

Overrides Resource::publicFields

File

modules/restful_example/src/Plugin/resource/variables/Variables__1_0.php, line 39
Contains \Drupal\restful_example\Plugin\resource\variables\Variables__1_0.

Class

Variables__1_0
Class Variables @package Drupal\restful\Plugin\resource

Namespace

Drupal\restful_example\Plugin\resource\variables

Code

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