Implements \Symfony\Component\Serializer\Normalizer\NormalizerInterface::normalize()
Overrides NormalizerInterface::normalize
public function normalize($entity, $format = NULL) {
$entityWrapper = new JsonldEntityWrapper($entity, $format, $this->serializer);
$attributes = $entityWrapper
->getProperties();
$attributes = array(
'@id' => $entityWrapper
->getId(),
) + $attributes;
return $attributes;
}