You are here

public function Log::label in Log entity 2.x

Gets the label of the entity.

Return value

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

Overrides EntityInterface::label

File

src/Entity/Log.php, line 97

Class

Log
Defines the Log entity.

Namespace

Drupal\log\Entity

Code

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