You are here

public function BlockContent::setRevisionUser in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/block_content/src/Entity/BlockContent.php \Drupal\block_content\Entity\BlockContent::setRevisionUser()
  2. 9 core/modules/block_content/src/Entity/BlockContent.php \Drupal\block_content\Entity\BlockContent::setRevisionUser()

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

Overrides RevisionLogEntityTrait::setRevisionUser

File

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

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;
}