/** * {@inheritdoc} */ public function normalize($entity, $format = NULL, array $context = array()) { $data = parent::normalize($entity, $format, $context); // Replace the file url with a full url for the file. $data['uri'][0]['value'] = $this->getEntityUri($entity); return $data; }
/** * {@inheritdoc} */ public function normalize($entity, $format = NULL, array $context = array()) { $data = parent::normalize($entity, $format, $context); return $data; }