You are here

public function ServicesResourceControllerInterface::field in Services Entity API 7.2

Get the value of a single field.

Parameters

$entity_type: The entity type.

$entity_id: The id of the entity on which the field values are present.

$field_name: The name of the field to retrieve the value of.

$fields: A comma-separated list of the fields to return on the returned entities, or '*' to return all fields.

$raw: (optional) Whether to return the raw value of the field, or the processed value. Defaults to FALSE.

Return value

Entity data for the field.

1 method overrides ServicesResourceControllerInterface::field()
ServicesEntityResourceController::field in plugins/services_entity_resource.inc
Implements ServicesResourceControllerInterface::field().

File

plugins/services_entity_interface.inc, line 125
Services Entity module integration for entities.

Class

ServicesResourceControllerInterface
Specifies CRUD and access methods for resources.

Code

public function field($entity_type, $entity_id, $field_name, $fields = '*', $raw = FALSE);