You are here

public function ImportEntity::setOwnerId in Content Synchronizer 8.2

Same name and namespace in other branches
  1. 8 src/Entity/ImportEntity.php \Drupal\content_synchronizer\Entity\ImportEntity::setOwnerId()
  2. 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\Entity

Code

public function setOwnerId($uid) {
  $this
    ->set('user_id', $uid);
  return $this;
}