You are here

public function AuditLog::label in Audit Log 8.2

Gets the label of the entity.

Return value

string|null The label of the entity, or NULL if there is no label defined.

Overrides ContentEntityBase::label

File

src/Entity/AuditLog.php, line 55

Class

AuditLog
Defines the Audit log entity.

Namespace

Drupal\audit_log\Entity

Code

public function label() {
  return $this
    ->getMessage();
}