public function EntityLegalDocumentAcceptance::getDocumentVersion in Entity Legal 7
Same name and namespace in other branches
- 7.2 entity_legal.entity.inc \EntityLegalDocumentAcceptance::getDocumentVersion()
Get the document version this acceptance belongs to.
Return value
EntityLegalDocumentVersion The version of the document corresponding to this acceptance.
File
- ./
entity_legal.entity.inc, line 476 - Entity API main classes used by entity_legal module.
Class
- EntityLegalDocumentAcceptance
- Legal document user acceptance entity.
Code
public function getDocumentVersion() {
return entity_load_single(ENTITY_LEGAL_DOCUMENT_VERSION_ENTITY_NAME, $this
->getDocumentVersionName());
}