public function Media::setRevisionUserId in Media entity 8
Sets the entity revision author by ID.
Parameters
int $user_id: The user ID of the revision author.
Return value
$this
Overrides RevisionLogInterface::setRevisionUserId
File
- src/
Entity/ Media.php, line 467
Class
- Media
- Defines the media entity class.
Namespace
Drupal\media_entity\EntityCode
public function setRevisionUserId($user_id) {
$this->revision_uid->target_id = $user_id;
return $this;
}