/** * {@inheritdoc} */ public function normalize($object, $format = null, array $context = []) { return $this->attachmentManager->getAttachment($context['entityName'], $context['entityId'], $context['fieldName'], $object, 'download', true); }