public function BlockContent::setRevisionUser in Drupal 10
Same name and namespace in other branches
- 8 core/modules/block_content/src/Entity/BlockContent.php \Drupal\block_content\Entity\BlockContent::setRevisionUser()
- 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\EntityCode
public function setRevisionUser(UserInterface $account) {
$this
->set('revision_user', $account);
return $this;
}