You are here

public function Log::getTypeName in Log entity 8

Gets the log type name.

Return value

string The log type name.

Overrides LogInterface::getTypeName

File

src/Entity/Log.php, line 141
Contains \Drupal\log\Entity\Log.

Class

Log
Defines the Log entity.

Namespace

Drupal\log\Entity

Code

public function getTypeName() {
  return $this
    ->get('type')->entity
    ->label();
}