RevisionLogEntityTrait::setRevisionUserId

public RevisionLogEntityTrait::setRevisionUserId($user_id)

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

Overrides RevisionLogInterface::setRevisionUserId

File

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

Class

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

Namespace

Drupal\Core\Entity

Code

public function setRevisionUserId($user_id) {
  $this->revision_user->target_id = $user_id;
  return $this;
}
doc_Drupal
2016-10-29 09:38:33
Comments
Leave a Comment

Please login to continue.