You are here

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

Same name and namespace in other branches
  1. 8 src/Entity/Log.php \Drupal\log\Entity\Log::setName()

Sets the log name.

Parameters

string $name: The log name.

Return value

\Drupal\log\Entity\LogInterface The log entity.

Overrides LogInterface::setName

File

src/Entity/Log.php, line 111

Class

Log
Defines the Log entity.

Namespace

Drupal\log\Entity

Code

public function setName($name) {
  $this
    ->set('name', $name);
  return $this;
}