You are here

public function RestfulCToolsPluginsDiscovery::publicFieldsInfo in RESTful 7

Return the properties that should be public.

Return value

array

Throws

\RestfulEntityViewMode

Overrides RestfulInterface::publicFieldsInfo

File

plugins/restful/ctools_plugins/1.0/RestfulCToolsPluginsDiscovery.class.php, line 13
Contains \RestfulCToolsPluginsDiscovery

Class

RestfulCToolsPluginsDiscovery
@file Contains \RestfulCToolsPluginsDiscovery

Code

public function publicFieldsInfo() {
  return array(
    'label' => array(
      'property' => 'label',
    ),
    'description' => array(
      'property' => 'description',
    ),
    'name' => array(
      'property' => 'name',
    ),
    'resource' => array(
      'property' => 'resource',
    ),
    'major_version' => array(
      'property' => 'major_version',
    ),
    'minor_version' => array(
      'property' => 'minor_version',
    ),
    'self' => array(
      'callback' => array(
        $this,
        'getSelf',
      ),
    ),
  );
}