function entity_legal_document_title in Entity Legal 7
Same name and namespace in other branches
- 7.2 entity_legal.module \entity_legal_document_title()
Get the title of a given document from its corresponding document version.
Parameters
EntityLegalDocument $document: The legal document to get the version title from.
Return value
string The title of the legal document from the published version.
3 calls to entity_legal_document_title()
- EntityLegalMethodMessage::execute in methods/entity_legal.message.inc 
- Execution method for message method.
- EntityLegalMethodsTestCase::testMessageMethod in tests/entity_legal.methods.test 
- Drupal message method test.
- EntityLegalMethodsTestCase::testPopupMethod in tests/entity_legal.methods.test 
- JQuery UI dialog method test.
1 string reference to 'entity_legal_document_title'
- entity_legal_menu in ./entity_legal.module 
- Implements hook_menu().
File
- ./entity_legal.module, line 291 
- Entity Legal module.
Code
function entity_legal_document_title(EntityLegalDocument $document) {
  $current_version = $document
    ->getPublishedVersion();
  return entity_label(ENTITY_LEGAL_DOCUMENT_VERSION_ENTITY_NAME, $current_version);
}