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; }
Please login to continue.