You are here

public function EntityLegalDocumentVersion::label in Entity Legal 7

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

Get the label of the legal document version entity.

Parameters

bool $sanitize: Whether or not to sanitize the label, defaults to TRUE.

Return value

string The label string.

Overrides Entity::label

File

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

Class

EntityLegalDocumentVersion
Legal Document entity version class.

Code

public function label($sanitize = FALSE) {
  $label_text = isset($this->label) ? $this->label : '';
  if ($sanitize) {
    $label_text = check_plain($label_text);
  }
  return $label_text;
}