You are here

public function ExportEntity::setOwner in Content Synchronizer 8.2

Same name and namespace in other branches
  1. 8 src/Entity/ExportEntity.php \Drupal\content_synchronizer\Entity\ExportEntity::setOwner()
  2. 3.x src/Entity/ExportEntity.php \Drupal\content_synchronizer\Entity\ExportEntity::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/ExportEntity.php, line 138

Class

ExportEntity
Defines the Export entity entity.

Namespace

Drupal\content_synchronizer\Entity

Code

public function setOwner(UserInterface $account) {
  $this
    ->set('user_id', $account
    ->id());
  return $this;
}