public function Schedule::setOwner in Business Rules 2.x
Same name and namespace in other branches
- 8 src/Entity/Schedule.php \Drupal\business_rules\Entity\Schedule::setOwner()
Sets the entity owner's user entity.
Parameters
\Drupal\user\UserInterface $account: The owner user entity.
Return value
$this
Overrides EntityOwnerInterface::setOwner
File
- src/
Entity/ Schedule.php, line 186
Class
- Schedule
- Defines the Schedule entity.
Namespace
Drupal\business_rules\EntityCode
public function setOwner(UserInterface $account) {
$this
->set('user_id', $account
->id());
return $this;
}