You are here

public function EntityLegalDocumentVersion::getDocument in Entity Legal 7

Same name and namespace in other branches
  1. 7.2 entity_legal.entity.inc \EntityLegalDocumentVersion::getDocument()

Get attached document entity.

Return value

EntityLegalDocument The attached document entity.

1 call to EntityLegalDocumentVersion::getDocument()
EntityLegalDocumentVersion::buildContent in ./entity_legal.entity.inc
Override buildContent() to add the acceptance form.

File

./entity_legal.entity.inc, line 405
Entity API main classes used by entity_legal module.

Class

EntityLegalDocumentVersion
Legal Document entity version class.

Code

public function getDocument() {
  return entity_load_single(ENTITY_LEGAL_DOCUMENT_ENTITY_NAME, $this->document_name);
}