You are here

public function EntityRevisionLogTrait::setRevisionUser in Entity API 8.0

File

src/Revision/EntityRevisionLogTrait.php, line 78
Contains \Drupal\entity\Revision\EntityRevisionLogTrait.

Class

EntityRevisionLogTrait
Provides a trait implementing \Drupal\entity\Revision\EntityRevisionLogInterface.

Namespace

Drupal\entity\Revision

Code

public function setRevisionUser(UserInterface $account) {
  $this->revision_user->entity = $account;
  return $this;
}