RevisionLogEntityTrait::setRevisionUser

public RevisionLogEntityTrait::setRevisionUser(UserInterface $account)

Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionUser().

Overrides RevisionLogInterface::setRevisionUser

File

core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php, line 80

Class

RevisionLogEntityTrait
Provides a trait for accessing revision logging and ownership information.

Namespace

Drupal\Core\Entity

Code

public function setRevisionUser(UserInterface $account) {
  $this->revision_user->entity = $account;
  return $this;
}
doc_Drupal
2016-10-29 09:38:33
Comments
Leave a Comment

Please login to continue.