You are here

public function EntityLegalDocument::label in Entity Legal 7.2

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

Get the label of the legal document 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 72
Entity API main classes used by entity_legal module.

Class

EntityLegalDocument
Legal Document entity with revision support.

Code

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