public function EntityLegalDocument::getVersionLabel in Entity Legal 7
Same name and namespace in other branches
- 7.2 entity_legal.entity.inc \EntityLegalDocument::getVersionLabel()
Get the title of the attached version.
Return value
bool|string The title of the published version or FALSE if no title found.
File
- ./
entity_legal.entity.inc, line 148 - Entity API main classes used by entity_legal module.
Class
- EntityLegalDocument
- Legal Document entity with revision support.
Code
public function getVersionLabel() {
$version_entity = $this
->getPublishedVersion();
if ($version_entity) {
return $version_entity
->label(TRUE);
}
else {
return FALSE;
}
}