You are here

protected function EntityShareUuidLinkEnhancer::doTransform in Entity Share 8.3

File

src/Plugin/jsonapi/FieldEnhancer/EntityShareUuidLinkEnhancer.php, line 85

Class

EntityShareUuidLinkEnhancer
Use UUID for internal link field value and add URL for import.

Namespace

Drupal\entity_share\Plugin\jsonapi\FieldEnhancer

Code

protected function doTransform($value, Context $context) {
  if (isset($value['content_entity_href'])) {
    unset($value['content_entity_href']);
  }
  return parent::doTransform($value, $context);
}