BlockContent::setRevisionUserId

public BlockContent::setRevisionUserId($user_id)

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

core/modules/block_content/src/Entity/BlockContent.php, line 273

Class

BlockContent
Defines the custom block entity class.

Namespace

Drupal\block_content\Entity

Code

public function setRevisionUserId($user_id) {
  $this->set('revision_user', $user_id);
  return $this;
}
doc_Drupal
2016-10-29 08:46:46
Comments
Leave a Comment

Please login to continue.