public function KanbanLog::setOwner in Content Planner 8
Sets the entity owner's user entity.
Parameters
\Drupal\user\UserInterface $account: The owner user entity.
Return value
$this
Overrides EntityOwnerInterface::setOwner
File
- modules/
content_kanban/ src/ Entity/ KanbanLog.php, line 125
Class
- KanbanLog
- Defines the Kanban Log entity.
Namespace
Drupal\content_kanban\EntityCode
public function setOwner(UserInterface $account) {
$this
->set('user_id', $account
->id());
return $this;
}