/** * Builds and returns the HTML for the entity's fingerprint. * * @param EntityRevision $entityRevision * * @return string HTML */ protected function getHtmlForFingerprint(EntityRevision $entityRevision) { $entity = $entityRevision->getEntity(); $id = $entity->getId(); if ($entity instanceof FingerprintProvider) { return $this->entityTermsView->getHtml($entity->getFingerprint(), $id, $this->getHtmlForTermBox($id, $entityRevision->getRevisionId()), $this->textInjector); } return ''; }