You are here

protected function EntityShareSerializedDataEnhancer::doUndoTransform in Entity Share 8.3

File

src/Plugin/jsonapi/FieldEnhancer/EntityShareSerializedDataEnhancer.php, line 31

Class

EntityShareSerializedDataEnhancer
Prepare paragraph serialized data value.

Namespace

Drupal\entity_share\Plugin\jsonapi\FieldEnhancer

Code

protected function doUndoTransform($data, Context $context) {
  return !empty($data['value']) ? $data['value'] : $data;
}