You are here

public function EntityLegalDocument::getNewVersion in Entity Legal 7

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

Get a new version of this legal document.

Return value

LegalDocumentVersion The legal document version entity.

1 call to EntityLegalDocument::getNewVersion()
EntityLegalDocument::getVersion in ./entity_legal.entity.inc
Get a version of this document.

File

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

Class

EntityLegalDocument
Legal Document entity with revision support.

Code

public function getNewVersion() {
  return entity_create(ENTITY_LEGAL_DOCUMENT_VERSION_ENTITY_NAME, array(
    'document_name' => $this
      ->identifier(),
  ));
}