public function ImportEntity::setOwnerId in Content Synchronizer 8.2
Same name and namespace in other branches
- 8 src/Entity/ImportEntity.php \Drupal\content_synchronizer\Entity\ImportEntity::setOwnerId()
- 3.x src/Entity/ImportEntity.php \Drupal\content_synchronizer\Entity\ImportEntity::setOwnerId()
Sets the entity owner's user ID.
Parameters
int $uid: The owner user id.
Return value
$this
Overrides EntityOwnerInterface::setOwnerId
File
- src/
Entity/ ImportEntity.php, line 157
Class
- ImportEntity
- Defines the Import entity.
Namespace
Drupal\content_synchronizer\EntityCode
public function setOwnerId($uid) {
$this
->set('user_id', $uid);
return $this;
}