BlockContent::setRevisionUser

public BlockContent::setRevisionUser(UserInterface $account)

Sets the entity revision author.

Parameters

\Drupal\user\UserInterface $account: The user account of the revision author.

Return value

$this

Overrides RevisionLogInterface::setRevisionUser

File

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

Class

BlockContent
Defines the custom block entity class.

Namespace

Drupal\block_content\Entity

Code

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

Please login to continue.