public function Project::setOwnerId in Drupal PM (Project Management) 4.x
Sets the entity owner's user ID.
Parameters
int $uid: The owner user id.
Return value
$this
Overrides EntityOwnerInterface::setOwnerId
File
- modules/
pm_project/ src/ Entity/ Project.php, line 163
Class
- Project
- Defines the Project entity.
Namespace
Drupal\pm_project\EntityCode
public function setOwnerId($uid) {
$this
->set('user_id', $uid);
return $this;
}