public function BackgroundImage::setOwnerId in Background Image 2.0.x
Same name and namespace in other branches
- 8 src/Entity/BackgroundImage.php \Drupal\background_image\Entity\BackgroundImage::setOwnerId()
- 2.x src/Entity/BackgroundImage.php \Drupal\background_image\Entity\BackgroundImage::setOwnerId()
Sets the entity owner's user ID.
Parameters
int $uid: The owner user id.
Return value
$this
Overrides EntityOwnerInterface::setOwnerId
File
- src/
Entity/ BackgroundImage.php, line 707
Class
- BackgroundImage
- Defines the Background Image entity.
Namespace
Drupal\background_image\EntityCode
public function setOwnerId($uid) {
$this
->set('uid', $uid);
return $this;
}