public function ImportEntity::setOwnerId in Content Synchronizer 3.x
Same name and namespace in other branches
- 8.2 src/Entity/ImportEntity.php \Drupal\content_synchronizer\Entity\ImportEntity::setOwnerId()
- 8 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 170
Class
- ImportEntity
- Defines the Import entity.
Namespace
Drupal\content_synchronizer\EntityCode
public function setOwnerId($uid) {
$this
->set('user_id', $uid);
return $this;
}