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