You are here

public function ResourceFieldEntity::preprocess in RESTful 7.2

Massage the value to set according to the format expected by the wrapper.

Parameters

mixed $value: The value passed in the request.

Return value

mixed The value to set using the wrapped property.

Overrides ResourceFieldEntityInterface::preprocess

3 methods override ResourceFieldEntity::preprocess()
ResourceFieldEntityFile::preprocess in src/Plugin/resource/Field/ResourceFieldEntityFile.php
Massage the value to set according to the format expected by the wrapper.
ResourceFieldEntityReference::preprocess in src/Plugin/resource/Field/ResourceFieldEntityReference.php
Massage the value to set according to the format expected by the wrapper.
ResourceFieldEntityText::preprocess in src/Plugin/resource/Field/ResourceFieldEntityText.php
Massage the value to set according to the format expected by the wrapper.

File

src/Plugin/resource/Field/ResourceFieldEntity.php, line 893
Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldEntity

Class

ResourceFieldEntity
Class ResourceFieldEntity.

Namespace

Drupal\restful\Plugin\resource\Field

Code

public function preprocess($value) {

  // By default assume that there is no preprocess and allow extending classes
  // to implement this.
  return $value;
}