public function Log::setName in Log entity 2.x
Same name and namespace in other branches
- 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\EntityCode
public function setName($name) {
$this
->set('name', $name);
return $this;
}