public function Profile::setRevisionAuthorId in Profile 2 8
Sets the profile revision author.
Parameters
int $uid: The user ID of the revision author.
Return value
\Drupal\profile\ProfileInterface The called profile entity.
Overrides ProfileInterface::setRevisionAuthorId
File
- src/
Entity/ Profile.php, line 244 - Contains \Drupal\profile\Entity\Profile.
Class
- Profile
- Defines the profile entity class.
Namespace
Drupal\profile\EntityCode
public function setRevisionAuthorId($uid) {
$this
->set('revision_uid', $uid);
return $this;
}